Explorar el Código

Fix IsAdminGroup comment.

Mariano Cano hace 5 años
padre
commit
08e5ec6ad1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      authority/provisioner/oidc.go

+ 2 - 2
authority/provisioner/oidc.go

@@ -87,8 +87,8 @@ func (o *OIDC) IsAdmin(email string) bool {
 	return false
 }
 
-// IsAdmin returns true if the given groups is in the Admins allowlist, false
-// otherwise.
+// IsAdminGroup returns true if the one group in the given list is in the Admins
+// allowlist, false otherwise.
 func (o *OIDC) IsAdminGroup(groups []string) bool {
 	for _, g := range groups {
 		// The groups and emails can be in the same array for now, but consider