mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 19:23:49 +00:00
Update default_setting_toggle.php
Check correct permission.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('voicemail_message_view')) {
|
||||
if (permission_exists('default_setting_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -69,4 +69,4 @@ else {
|
||||
}
|
||||
header("Location: default_settings.php".(($search != '') ? '?search='.$search : null));
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user