From b9bf61cf68bf8a304a108faf82d7f50c3d4fabc2 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 15 Oct 2023 16:29:16 -0600 Subject: [PATCH] fix --- group.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/group.go b/group.go index 419edb5..09b9867 100644 --- a/group.go +++ b/group.go @@ -175,12 +175,12 @@ func (policy MemberOfPolicy) Allows(ctx *Context, principal_id NodeID, action Tr if err != nil { ctx.Log.Logf("group", "MemberOfPolicy with self ID error: %s", err) } else { - for sub_group_name, sub_group := range(sub_groups) { + for sub_group_name, permission := range(sub_groups) { ext_sub_group, exists := ext.SubGroups[sub_group_name] if exists == true { for _, member := range(ext_sub_group) { if member == principal_id { - if sub_group.Allows(action) == Allow { + if permission.Allows(action) == Allow { return nil, Allow } break