Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

casbin check fail #74

Open
dongminaug opened this issue Jul 12, 2021 · 2 comments
Open

casbin check fail #74

dongminaug opened this issue Jul 12, 2021 · 2 comments

Comments

@dongminaug
Copy link

https://github.com/labulaka521/crocodile/blob/1e81ef0c3d9c563edea50e672d428f69c4493563/core/middleware/auth.go#L80

此处uid 是否应修改为role.String() ?

@labulakalia
Copy link
Owner

请描述详细点

@dongminaug
Copy link
Author

casbin rbac 基于用户角色判断权限,所以enforcer.Enforce 应该传入用户role ,实际部署中这个地方修改后可正常进入界面。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants