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

template扩展需要添加is_granted功能 #7

Open
li-chun-yin opened this issue Sep 22, 2018 · 0 comments
Open

template扩展需要添加is_granted功能 #7

li-chun-yin opened this issue Sep 22, 2018 · 0 comments

Comments

@li-chun-yin
Copy link
Member

目前代码中使用has_roles判断用户是否有这些角色,来判断url是否可以显示
但是权限设置时,不一定设置的是用户的角色,有可能是一个其他的字段,
所以需要is_granted函数判断用户是否有权限方法这个url

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

1 participant