I'm a little frustrated trying to set up logins for my site.  Using
@permission_required, if a user is already logged in but doesn't have
sufficient permissions for a particular view, they just get redirected
to the login form, with no explanation.

I can set up a custom login view that will give the user to a
"permission denied" page if they're already logged in or redirect them
to the login screen otherwise.

However, due to the way that admin handles logins there's still no way
to give the user a useful error message if they try to log into the
admin and log into the site successfully but don't have permission to
use the admin at all.  Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to