Use correct admin command object to set run rights

This commit is contained in:
nathangray 2018-09-13 10:32:26 -06:00
parent f5b9aa3992
commit d29cd78a7c

View File

@ -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();
}
}