mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update check permisisons
This commit is contained in:
@@ -29,10 +29,7 @@
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('call_center_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
if (!permission_exists('call_center_active_view')) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -30,10 +30,7 @@
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('call_center_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
if (!permission_exists('call_center_active_view')) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -32,10 +32,7 @@
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('call_center_active_options')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
if (!permission_exists('call_center_active_options')) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
@@ -53,7 +50,7 @@
|
||||
if (!is_numeric($extension)) {
|
||||
$extension = null;
|
||||
}
|
||||
|
||||
|
||||
//validate the uuid
|
||||
if (!is_uuid($uuid)) {
|
||||
$uuid = null;
|
||||
|
||||
@@ -29,10 +29,7 @@
|
||||
require_once "resources/paging.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('call_center_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
if (!permission_exists('call_center_active_view')) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user