gin-vue-admin icon indicating copy to clipboard operation
gin-vue-admin copied to clipboard

菜单权限和资源权限

Open lu569368 opened this issue 4 years ago • 7 comments

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

lu569368 avatar Jul 11 '20 07:07 lu569368

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

操作流程 新增菜单--->给角色增加菜单权限--->刷新

piexlmax avatar Jul 11 '20 07:07 piexlmax

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

lu569368 avatar Jul 11 '20 08:07 lu569368

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

菜单权限不是casbin维护的 casbin维护的是api 菜单通过sys_authority_menu 加视图维护

piexlmax avatar Jul 11 '20 13:07 piexlmax

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

pwli0755 avatar Dec 09 '20 08:12 pwli0755

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

SliverHorn avatar Dec 09 '20 08:12 SliverHorn

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 ?

pwli0755 avatar Dec 09 '20 09:12 pwli0755

同问,期待

aixj1984 avatar Jan 13 '21 11:01 aixj1984