Skip to content
/ django Public

Fixed #6363 -- Refactored admin_view decorator#925

Closed
czpython wants to merge 2 commits intodjango:masterfrom
czpython:master
Closed

Fixed #6363 -- Refactored admin_view decorator#925
czpython wants to merge 2 commits intodjango:masterfrom
czpython:master

Conversation

@czpython
Copy link
Contributor

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...

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.
@lprsd
Copy link

lprsd commented Mar 19, 2013

Pretty nice.

@timgraham
Copy link
Member

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants