Merge branch 'ent-13271-Usuarios-no-admin-no-pueden-usar-Graph-Analytics-sin-permisos-de-editar-Edit-agents' into 'develop'
Ent 13271 usuarios no admin no pueden usar graph analytics sin permisos de editar edit agents See merge request artica/pandorafms!7341
This commit is contained in:
commit
39fa12c269
|
@ -55,11 +55,12 @@ if (is_ajax()) {
|
|||
$search = io_safe_input($search_left);
|
||||
|
||||
// Agents.
|
||||
// Concatenate AW and AD permisions to get all the possible groups where the user can manage.
|
||||
// Concatenate AR, AW and AD permisions to get all the possible groups where the user can manage.
|
||||
$user_groupsAW = users_get_groups($config['id_user'], 'AW');
|
||||
$user_groupsAD = users_get_groups($config['id_user'], 'AD');
|
||||
$user_groupsAR = users_get_groups($config['id_user'], 'AR');
|
||||
|
||||
$user_groups = ($user_groupsAW + $user_groupsAD);
|
||||
$user_groups = ($user_groupsAW + $user_groupsAD + $user_groupsAR);
|
||||
$user_groups_to_sql = implode(',', array_keys($user_groups));
|
||||
|
||||
$search_sql = ' AND (nombre LIKE "%%'.$search.'%%" OR alias LIKE "%%'.$search.'%%")';
|
||||
|
@ -197,6 +198,9 @@ if (is_ajax()) {
|
|||
'graph_analytics' => true,
|
||||
];
|
||||
|
||||
// Included dependencies when is an ajax request.
|
||||
include_javascript_dependencies_flot_graph(false);
|
||||
|
||||
$graph_return = graphic_combined_module(
|
||||
$modules,
|
||||
$params,
|
||||
|
|
Loading…
Reference in New Issue