forked from TrueCloudLab/certificates
Fix IsAdminGroup comment.
This commit is contained in:
parent
46c1dc80fb
commit
08e5ec6ad1
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ func (o *OIDC) IsAdmin(email string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsAdmin returns true if the given groups is in the Admins allowlist, false
|
// IsAdminGroup returns true if the one group in the given list is in the Admins
|
||||||
// otherwise.
|
// allowlist, false otherwise.
|
||||||
func (o *OIDC) IsAdminGroup(groups []string) bool {
|
func (o *OIDC) IsAdminGroup(groups []string) bool {
|
||||||
for _, g := range groups {
|
for _, g := range groups {
|
||||||
// The groups and emails can be in the same array for now, but consider
|
// The groups and emails can be in the same array for now, but consider
|
||||||
|
|
Loading…
Reference in a new issue