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

replace is_staff with has_permission #148

@pprolancer

Description

@pprolancer

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 %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions