From d29cd78a7c34f1cc915374fc8230a8bd183ff14e Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 13 Sep 2018 10:32:26 -0600 Subject: [PATCH] Use correct admin command object to set run rights --- admin/inc/class.admin_acl.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); } }