mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53: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('call_center_agent_add') || !permission_exists('call_center_agent_edit')) {
|
||||
if (!(permission_exists('call_center_agent_add') || permission_exists('call_center_agent_edit'))) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (!permission_exists('call_center_queue_add') || !permission_exists('call_center_queue_edit')) {
|
||||
if (!(permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit'))) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (!permission_exists('call_center_queue_add') || !permission_exists('call_center_queue_edit')) {
|
||||
if (!(permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit'))) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user