Browse Source

Don't display groups if you are not logged in

webdeploy
meskio 3 years ago
parent
commit
5dff87b847
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 4
      ldap/group.go

4
ldap/group.go

@ -17,6 +17,10 @@ type Group struct {
// InGroup checks if user is part of group
func (l Ldap) InGroup(user string, group string) bool {
if user == "" {
return false
}
conn, err := l.connect()
if err != nil {
return false

Loading…
Cancel
Save