| Index: logdog/appengine/coordinator/auth.go
|
| diff --git a/logdog/appengine/coordinator/auth.go b/logdog/appengine/coordinator/auth.go
|
| index 1044c23b64e67d3c78b104e2d37cc38703570e7a..13f8990ba011db3a5ffd3b7e17234ab7e8973885 100644
|
| --- a/logdog/appengine/coordinator/auth.go
|
| +++ b/logdog/appengine/coordinator/auth.go
|
| @@ -71,18 +71,16 @@ func checkMember(c context.Context, groups ...string) error {
|
| }
|
|
|
| id := auth.CurrentIdentity(c)
|
| - for _, group := range groups {
|
| - is, err := auth.IsMember(c, group)
|
| - if err != nil {
|
| - return err
|
| - }
|
| - if is {
|
| - log.Fields{
|
| - "identity": id,
|
| - "group": group,
|
| - }.Debugf(c, "User access granted.")
|
| - return nil
|
| - }
|
| + is, err := auth.IsMember(c, groups...)
|
| + if err != nil {
|
| + return err
|
| + }
|
| + if is {
|
| + log.Fields{
|
| + "identity": id,
|
| + "group": groups,
|
| + }.Debugf(c, "User access granted.")
|
| + return nil
|
| }
|
|
|
| return &MembershipError{
|
|
|