Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
5cab2815
Commit
5cab2815
authored
Nov 26, 2018
by
Cecilia Vela Gurovic
Committed by
Gerrit Code Review
Nov 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug 1804959: Make sure there is at least 1 admin"
parents
0248b268
0a42ea65
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
htdocs/auth/ldap/lib.php
htdocs/auth/ldap/lib.php
+5
-0
No files found.
htdocs/auth/ldap/lib.php
View file @
5cab2815
...
...
@@ -1522,6 +1522,11 @@ class AuthLdap extends Auth {
$members
[
$id
]
=
'member'
;
}
}
// doublecheck that we have at least 1 admin in the group in case the user = 1 is a member of the group
if
(
!
in_array
(
'admin'
,
$members
))
{
// in no admins then force user = 1 to be the admin
$members
[
'1'
]
=
'admin'
;
}
if
(
get_config
(
'auth_ldap_debug_sync_cron'
))
{
log_debug
(
'new members list : '
.
count
(
$members
));
var_dump
(
$members
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment