Add config option to make everyone admin (#106)

This commit is contained in:
dada513
2022-09-19 22:26:11 +02:00
committed by GitHub
parent e4c641f78f
commit 12717987a6
2 changed files with 4 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ func (s *Server) SyncLdapWithUserDatabase() {
}
func (s Server) userIsInAdminGroup(ldapData *ldap.RawLdapData) bool {
if s.config.LDAP.EveryoneAdmin {
return true
}
if s.config.LDAP.AdminLdapGroup_ == nil {
return false
}