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

[Bug]: 权限校验不通过 #13

Closed
declanchiu opened this issue Mar 7, 2023 · 4 comments
Closed

[Bug]: 权限校验不通过 #13

declanchiu opened this issue Mar 7, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@declanchiu
Copy link

lakego-admin 版本

1.0.1

Golang 版本

go 1.17

是否依旧存在

可以

bug描述

本地跑起了一个测试项目。新增了一个用户并且赋予了一个拥有全部权限的角色,但是使用该用户登录的时候 /admin-api/profile 这个接口的调用一直报错并且返回 ”你没有权限访问“。查询了一下数据库,admin_id 和 group_id 是关联没问题的。

image

image

image

image

修改建议

No response

@declanchiu declanchiu added the bug Something isn't working label Mar 7, 2023
@declanchiu declanchiu changed the title [Bug]: [Bug]: 权限校验不通过 Mar 7, 2023
@declanchiu
Copy link
Author

image

登录是成功的

@deatil
Copy link
Owner

deatil commented Mar 7, 2023

账号列表或者分组列表那需要点击刷新权限,同步一下权限。
当前的权限不是设置后就直接同步的

@declanchiu
Copy link
Author

原来如此,谢谢大佬,我是一个 go 新手正在学习你的项目看看 rbac 相关的,谢谢你的开源。

@deatil
Copy link
Owner

deatil commented Mar 7, 2023

嗯。

@deatil deatil closed this as completed Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants