Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
1a2a5fe0
Unverified
Commit
1a2a5fe0
authored
5 years ago
by
Peter Rotich
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #5089 from JediKev/issue/acl-oopsie
issue: ACL Oopsie
parents
bcf1a6f1
4d774bc4
No related branches found
Branches containing commit
Tags
v1.9.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/class.config.php
+1
-1
1 addition, 1 deletion
include/class.config.php
with
1 addition
and
1 deletion
include/class.config.php
+
1
−
1
View file @
1a2a5fe0
...
...
@@ -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'
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment