gin-vue-admin
gin-vue-admin copied to clipboard
菜单权限和资源权限
查看代码好像用户设置了菜单权限但是好像并不能起作用啊吗
查看代码好像用户设置了菜单权限但是好像并不能起作用啊吗
操作流程 新增菜单--->给角色增加菜单权限--->刷新
这个功能我知道就是添加完菜单权限并没有写入到casbin_rule里面啊!有可能是我理解错了或者大神有其他的思路
这个功能我知道就是添加完菜单权限并没有写入到casbin_rule里面啊!有可能是我理解错了或者大神有其他的思路
菜单权限不是casbin维护的 casbin维护的是api 菜单通过sys_authority_menu 加视图维护
what‘s the difference among "menu permissions" "resource permissions" and "api permissions" ? @piexlmax
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
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 ?
同问,期待