Browse Source

Do a manual search in the users list

merge-requests/8/head
meskio 4 years ago
parent
commit
4450483a3c
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 8
      server/user.go

8
server/user.go

@ -3,7 +3,6 @@ package server
import (
"log"
"net/http"
"sort"
"0xacab.org/sindominio/lowry/ldap"
)
@ -107,5 +106,10 @@ func (s *server) needsToAskForSindominante(user string) bool {
}
func (s *server) userInAskList(user string) bool {
return sort.SearchStrings(s.usersAskRole, user) != len(s.usersAskRole)
for _, u := range s.usersAskRole {
if u == user {
return true
}
}
return false
}

Loading…
Cancel
Save