mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed public dashboard permissions
This commit is contained in:
parent
cd508098cb
commit
92c7eb59f5
@ -15,7 +15,10 @@
|
|||||||
// Login check
|
// Login check
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
check_login ();
|
// Public dashboards have not user. Try to get from URL
|
||||||
|
if (!isset($config['id_user'])) {
|
||||||
|
$config['id_user'] = get_parameter('id_user');
|
||||||
|
}
|
||||||
|
|
||||||
// Fix: IW was the old ACL to check for report editing, now is RW
|
// Fix: IW was the old ACL to check for report editing, now is RW
|
||||||
if (! check_acl ($config['id_user'], 0, "VR")) {
|
if (! check_acl ($config['id_user'], 0, "VR")) {
|
||||||
|
@ -13,8 +13,10 @@
|
|||||||
// Load global variables
|
// Load global variables
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// Check user credentials
|
// Public dashboards have not user. Try to get from URL
|
||||||
check_login();
|
if (!isset($config['id_user'])) {
|
||||||
|
$config['id_user'] = get_parameter('id_user');
|
||||||
|
}
|
||||||
|
|
||||||
require_once ('include/functions_pandora_networkmap.php');
|
require_once ('include/functions_pandora_networkmap.php');
|
||||||
enterprise_include_once('include/functions_policies.php');
|
enterprise_include_once('include/functions_policies.php');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user