Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed #6363 -- Refactored admin_view decorator #925

wants to merge 2 commits into


None yet
3 participants

czpython commented Mar 18, 2013

In order to decouple authorization from authentication, we created a separate template for the admin called "unauthorized_user.html", this template will be rendered when a user is not active or is not staff. It will also be rendered when the has_permission method returns False. This needs to be documented...

czpython added some commits Mar 18, 2013

@czpython czpython Fix for bug #6363.
Created new admin template unauthorized_user.html to be displayed when the user
is authenticated but is not authorized.
Removed permission checking from the admin authentication form.
@czpython czpython Merge branch 'master' of github.com:django/django a2cf24d

Pretty nice.


timgraham commented Sep 18, 2013

This no longer merges cleanly and needs tests and docs as you noted. Please open a new PR if you make those updates, thanks!

@timgraham timgraham closed this Sep 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment