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

菜单权限和资源权限 #141

Open
lu569368 opened this issue Jul 11, 2020 · 7 comments
Open

菜单权限和资源权限 #141

lu569368 opened this issue Jul 11, 2020 · 7 comments
Labels
good first issue Good for newcomers

Comments

@lu569368
Copy link

查看代码好像用户设置了菜单权限但是好像并不能起作用啊吗

@lu569368
Copy link
Author

这个功能我知道就是添加完菜单权限并没有写入到casbin_rule里面啊!有可能是我理解错了或者大神有其他的思路

@pwli0755
Copy link

pwli0755 commented Dec 9, 2020

what‘s the difference among "menu permissions" "resource permissions" and "api permissions" ? @piexlmax

@SliverHorn
Copy link
Member

what‘s the difference among "menu permissions" "resource permissions" and "api permissions"

menu permissions :This is the menu item on the left side of the front page, and it will fetch the menu id through the role ID whether it is in the database, the specific implementation depends on the code
resource permissions:This is for the front page 示例文件-> 客户列表(资源权限) ,The implementation looks at the code
api permissions: This is the API corresponding permission of each API request, and it will judge whether the address and request mode of API request are in the database through the role ID, and the specific implementation depends on the code

@pwli0755
Copy link

pwli0755 commented Dec 9, 2020

what‘s the difference among "menu permissions" "resource permissions" and "api permissions"

menu permissions :This is the menu item on the left side of the front page, and it will fetch the menu id through the role ID whether it is in the database, the specific implementation depends on the code
resource permissions:This is for the front page 示例文件-> 客户列表(资源权限) ,The implementation looks at the code
api permissions: This is the API corresponding permission of each API request, and it will judge whether the address and request mode of API request are in the database through the role ID, and the specific implementation depends on the code

Is it possible to store the menu permissions into casbin too? what's the purpose storing these data into specific database table ?

@aixj1984
Copy link

同问,期待

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

No branches or pull requests

5 participants
@aixj1984 @pwli0755 @lu569368 @SliverHorn and others