mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-02 05:59:20 +00:00
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 .= "where domain_uuid = '$domain_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) {
|
||||
$sql .= "and (";
|
||||
$x = 0;
|
||||
|
||||
@@ -46,7 +46,7 @@ require_once "resources/check_auth.php";
|
||||
}
|
||||
|
||||
//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)) {
|
||||
echo "access denied";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user