diff --git a/admin/inc/class.admin_acl.inc.php b/admin/inc/class.admin_acl.inc.php index d65e8fce16..c615c00921 100644 --- a/admin/inc/class.admin_acl.inc.php +++ b/admin/inc/class.admin_acl.inc.php @@ -372,7 +372,14 @@ class admin_acl 'rights' => (int)$right // This is the documentation from policy app )+(array)$values['admin_cmd']; - $cmd = new admin_cmd_acl($data); + if($location == 'run') + { + $cmd = new admin_cmd_account_app($set_it,$account_id, $app); + } + else + { + $cmd = new admin_cmd_acl($data); + } $cmd->run(); } }