daisylb / bridgekeeper

Django permissions, but with QuerySets
https://bridgekeeper.leigh.party/
MIT License
41 stars 14 forks source link

Add templatetags has_perm #29

Open weber-s opened 2 years ago

weber-s commented 2 years ago

This PR add the useful has_perm templatetags, similar to django rules.

Usage example:

{% has_perm "app.action" request.user object as can_do_action %}
{% if  can_do_action %}
   Do stuff
{% endif %}
weber-s commented 1 year ago

any news on this PR?