2014-01-23 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/map_builder.php, godmode/reporting/visual_console_builder.data.php: fixed the access to user with operator read or and operator write in all group into the visualmaps. Incident: #538 from local tracker git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d59437f34a
commit
6bb7ca3a17
|
@ -1,3 +1,12 @@
|
|||
2014-01-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/reporting/map_builder.php,
|
||||
godmode/reporting/visual_console_builder.data.php: fixed the access
|
||||
to user with operator read or and operator write in all group into
|
||||
the visualmaps.
|
||||
|
||||
Incident: #538 from local tracker
|
||||
|
||||
2014-01-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/reporting/visual_console_builder.editor.js,
|
||||
|
|
|
@ -157,9 +157,10 @@ $table->align[2] = 'center';
|
|||
$table->align[3] = 'center';
|
||||
$table->align[4] = 'center';
|
||||
|
||||
// Only display maps of "All" group if user is administrator or has "PM" privileges, otherwise show only maps of user group
|
||||
// Only display maps of "All" group if user is administrator
|
||||
// or has "RR" privileges, otherwise show only maps of user group
|
||||
$own_info = get_user_info ($config['id_user']);
|
||||
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
||||
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "RR"))
|
||||
$maps = visual_map_get_user_layouts ();
|
||||
else
|
||||
$maps = visual_map_get_user_layouts ($config['id_user'], false, false, false);
|
||||
|
|
|
@ -78,8 +78,9 @@ $table->data[1][0] = __('Group:');
|
|||
$groups = users_get_groups ($config['id_user'], 'RW');
|
||||
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
// Only display group "All" if user is administrator or has "PM" privileges
|
||||
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
||||
// Only display group "All" if user is administrator
|
||||
// or has "RW" privileges
|
||||
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "RW"))
|
||||
$display_all_group = true;
|
||||
else
|
||||
$display_all_group = false;
|
||||
|
|
Loading…
Reference in New Issue