Skip to content
Snippets Groups Projects
Unverified Commit 1a2a5fe0 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #5089 from JediKev/issue/acl-oopsie

issue: ACL Oopsie
parents bcf1a6f1 4d774bc4
No related branches found
Tags v1.9.0
No related merge requests found
......@@ -1188,7 +1188,7 @@ class OsticketConfig extends Config {
// Check if Admin's IP is in the list, if not, return error
// to avoid locking self out
if (!in_array($vars['acl_backend'], array(0,2))) {
$acl = explode(',', str_replace(' ', '', $acl));
$acl = explode(',', str_replace(' ', '', $vars['acl']));
if (!in_array(osTicket::get_client_ip(), $acl))
$errors['acl'] = __('Cowardly refusing to lock out active administrator');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment