diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index fb60bf8977..266e99026c 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -495,7 +495,9 @@ } } } - echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'style'=>($action != 'update' ?: 'margin-left: 15px;'),'collapse'=>'hide-sm-dn','onclick'=>"document.getElementById('frm').submit();"]); + if (permission_exists('contact_edit') || permission_exists('contact_add')) { + echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'style'=>($action != 'update' ?: 'margin-left: 15px;'),'collapse'=>'hide-sm-dn','onclick'=>"document.getElementById('frm').submit();"]); + } echo " \n"; echo "
\n"; echo "\n"; @@ -858,4 +860,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/contacts/contacts.php b/app/contacts/contacts.php index 6dd1015dd6..aecef56831 100644 --- a/app/contacts/contacts.php +++ b/app/contacts/contacts.php @@ -305,7 +305,7 @@ if (is_array($contacts) && @sizeof($contacts) != 0) { $x = 0; foreach($contacts as $row) { - if (permission_exists('contact_edit')) { + if (permission_exists('contact_edit') || permission_exists('contact_view')) { $list_row_url = "contact_edit.php?id=".urlencode($row['contact_uuid'])."&query_string=".urlencode($_SERVER["QUERY_STRING"]); } echo "