Skip to content

Commit 3c56829

Browse files
authored
Update the casbin RBAC module path (#604)
1 parent 1d32154 commit 3c56829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/common/security/rbac.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def rbac_verify(request: Request, _token: str = DependsJwtAuth) -> None:
7070
raise AuthorizationError
7171
else:
7272
try:
73-
casbin_rbac = import_module_cached('backend.plugin.casbin.utils.rbac')
73+
casbin_rbac = import_module_cached('backend.plugin.casbin_rbac.rbac')
7474
casbin_verify = getattr(casbin_rbac, 'casbin_verify')
7575
except (ImportError, AttributeError) as e:
7676
log.error(f'正在通过 casbin 执行 RBAC 权限校验,但此插件不存在: {e}')

0 commit comments

Comments
 (0)