From 98fb9f25b071667b82bf289c668b829bc48c0fba Mon Sep 17 00:00:00 2001 From: Yaodong Yu <2814461814@qq.com> Date: Fri, 16 Jun 2023 20:14:27 +0800 Subject: [PATCH] feat: fix bug that users in role don't work for permissions (#1977) * feat: fix check login permission * feat: fix check login permission --- object/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object/check.go b/object/check.go index bf134525..767c2ab3 100644 --- a/object/check.go +++ b/object/check.go @@ -353,7 +353,7 @@ func CheckAccessPermission(userId string, application *Application) (bool, error allowed := true for _, permission := range permissions { - if !permission.IsEnabled || len(permission.Users) == 0 { + if !permission.IsEnabled { continue }