This should fix some of the group permissions issues from issue #1065
This commit is contained in:
@@ -63,7 +63,7 @@ else {
|
|||||||
$sql = "select * from v_extensions ";
|
$sql = "select * from v_extensions ";
|
||||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||||
$sql .= "and extension_uuid = '$extension_uuid' ";
|
$sql .= "and extension_uuid = '$extension_uuid' ";
|
||||||
if (!(if_group("admin") || if_group("superadmin"))) {
|
if (!(permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb'))) {
|
||||||
if (count($_SESSION['user']['extension']) > 0) {
|
if (count($_SESSION['user']['extension']) > 0) {
|
||||||
$sql .= "and (";
|
$sql .= "and (";
|
||||||
$x = 0;
|
$x = 0;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ require_once "resources/check_auth.php";
|
|||||||
}
|
}
|
||||||
|
|
||||||
//deny access if the user extension is not assigned
|
//deny access if the user extension is not assigned
|
||||||
if (!(if_group("superadmin") || if_group("admin"))) {
|
if (!permission_exists('voicemail_greeting_view')) {
|
||||||
if (!is_extension_assigned($voicemail_id)) {
|
if (!is_extension_assigned($voicemail_id)) {
|
||||||
echo "access denied";
|
echo "access denied";
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user