You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for the suggestion. Yes that makes sense.
The problem is there might be some classes not inheriting from AuthModelAdmin so they might be visible in the page.
There should be a generic way to control this via middlewares maybe. Let me take a look.
Checklist
master
.Describe the bug
According documentation we can use middleware for hiding admin page from some users.
If user is not
is_authenticated
it shows:Steps to reproduce the bug
Just add auth middleware like this:
Expected behavior
Do not show page; raise error
Actual behavior
No response
Debugging material
No response
Environment
SMP Debian 5.10.106-1 (2022-03-17)
Python 3.9
Additional context
No response
The text was updated successfully, but these errors were encountered: