feat: 数据库直连操作权限
This commit is contained in:
1 parent
c6eed87f40
commit
e95679ea4b
3 files changed
+50
-32
No files matched your search
@@ -118,7 +118,7 @@ func verifyRolePermission(roles, perms []string, options map[string][]string) bo
|
||||
|
||||
// 同时判断 含有其中
|
||||
if opts[0] && opts[1] {
|
||||
return hasRole && hasPerms
|
||||
return hasRole || hasPerms
|
||||
}
|
||||
// 同时判断 匹配其中
|
||||
if opts[2] && opts[3] {
|
||||
|
||||
Reference in new issue
Block a user