Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

replace is_staff with has_permission #148

Open
pprolancer opened this issue Nov 10, 2019 · 0 comments
Open

replace is_staff with has_permission #148

pprolancer opened this issue Nov 10, 2019 · 0 comments

Comments

@pprolancer
Copy link

Hello, @douglasmiranda

{% if user.is_active and user.is_staff %}

in above line we shouldn't check accessibility with "is_staff". this cause problems for customized permission admin sites.

we should replace that line with:
{% if has_permission %}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant