mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Settings: Add interface for User Settings, add ability for Admin to manage (own) Domain and User Settings.
This commit is contained in:
@@ -26,13 +26,20 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('domain_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//redirect admin to app instead
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/domains/") && !permission_exists('domain_parent') && permission_exists('domain_descendants')) {
|
||||
header("Location: ".PROJECT_PATH."/app/domains/domains.php");
|
||||
}
|
||||
|
||||
//check permission
|
||||
if (permission_exists('domain_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
|
||||
Reference in New Issue
Block a user