Re: admin permissions: all or nothing

2009-05-07 Thread omat * gezgin.com
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/

Re: admin permissions: all or nothing

2009-05-07 Thread omat * gezgin.com
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

Re: admin permissions: all or nothing

2009-05-07 Thread omat * gezgin.com
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

Re: admin permissions: all or nothing

2009-05-07 Thread Kenneth Gonsalves
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

admin permissions: all or nothing

2009-05-07 Thread omat
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