Adjusting permissions for the dashbaord

Farther down in the code if the user doesn't have ring_group_edit or ring_group_forward then let them see ring groups they were assigned directly. The check permissions that is being removed in this commit interferes with the assigned user from being able to see ring group assigned to them.
This commit is contained in:
FusionPBX
2021-11-11 10:03:44 -07:00
committed by GitHub
parent 414116c562
commit 94f32e5513

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2013-2019
Portions created by the Initial Developer are Copyright (C) 2013-2021
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -31,15 +31,6 @@
require_once "resources/check_auth.php";
require_once "resources/paging.php";
//check permissions
if (permission_exists('ring_group_edit') || permission_exists('ring_group_forward')) {
//access granted
}
else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text;
$text = $language->get($_SESSION['domain']['language']['code'], 'app/ring_groups');