Solved - was a custom authentication backend issue.
Looking into the get_all_permissions() method, I realized that it
calls the authentication backend's get_all_permissions() method.
I have been using a custom authentication back-end, developed
according to:
http://docs.djangoproject.com/en/dev/
While trying to track down the problem, I encountered this strange
behavior that the permissions of the user are not returned with
get_all_permissions():
>>> u = User.objects.get(username='demo')
>>> u.user_permissions.all()
[, , ]
>>> u.get_all_permissions()
set([])
Am I missing something bas
Sure, otherwise I won't be able to login to admin with that user at
first place.
Best,
oMat
On May 7, 1:04 pm, Kenneth Gonsalves wrote:
> On Thursday 07 May 2009 15:32:08 omat wrote:
>
> > "You don't have permission to edit anything."
>
> you have set is_staff?
> --
> regards
> kghttp://lawgo
On Thursday 07 May 2009 15:32:08 omat wrote:
> "You don't have permission to edit anything."
you have set is_staff?
--
regards
kg
http://lawgon.livejournal.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
Hi,
I have set up the admin, and works as expected when logged in as a
super user.
When I log in with a user that have limited permissions (either when
permissions were assigned directly to the user or through a group
membership), the admin site says:
"You don't have permission to edit anything
5 matches
Mail list logo