From 08e5ec6ad1007ccd8a44eb3f479a9fbaaddf18b8 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 29 Apr 2021 18:47:17 -0700 Subject: [PATCH] Fix IsAdminGroup comment. --- authority/provisioner/oidc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/provisioner/oidc.go b/authority/provisioner/oidc.go index 3b2d81bf..79a10ffd 100644 --- a/authority/provisioner/oidc.go +++ b/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