mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user