Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/contacts/Contacts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
 
</div>
<br /><br />
<?php if ($this->accessLevel >= ACCESS_LEVEL_EDIT): ?>
<table cellpadding="0" cellspacing="0" border="0" width="956">
<tr>
<td style="padding-left: 62px;" align="center" valign="center">
Expand All @@ -105,6 +106,7 @@

</tr>
</table>
<?php endif; ?>

<?php endif; ?>

Expand Down
6 changes: 6 additions & 0 deletions modules/contacts/ContactsUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,12 @@ private function show()
*/
private function add()
{
/* Bail if we don't have add permision. */
if ($this->_accessLevel < ACCESS_LEVEL_EDIT)
{
CommonErrors::fatal(COMMONERROR_PERMISSION, $this, 'Invalid user level for action.');
}

$companies = new Companies($this->_siteID);
$contacts = new Contacts($this->_siteID);

Expand Down