#25163: When a user doesn't have permission to an admin page, raise 404 instead 
of
redirecting to login
--------------------------------------+------------------------------------
     Reporter:  adelton               |                    Owner:
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  contrib.admin         |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by carljm):

 Yes, the 404 idea would require more work, and would have some negative
 consequences.

 I hope that the redirect to login in the admin is already unconditional
 for any url under admin/ and doesn't currently reveal information about
 the available admin urls. Need to check that.

 I think the best resolution for this bug is probably some ux hint on the
 admin login screen for a user who is already authenticated, as mentioned
 in the ticket description. I may be missing something, but I don't see how
 that would be a problem or reveal anything that shouldn't be revealed.

--
Ticket URL: <https://code.djangoproject.com/ticket/25163#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.ac2356431491f790b5a717f5dcd8549c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to