mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update permission_exists for multiple permissions
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (!permission_exists('contact_email_edit') || !permission_exists('contact_email_add')) {
|
||||
if (!(permission_exists('contact_email_edit') || permission_exists('contact_email_add'))) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user