Héllo Chung,

Did you have a look at https://github.com/lukaszb/django-guardian#usage it 
adds user permissions for objects, I don't know how it works with a Django 
1.5 though.

Regards

On Sunday, January 13, 2013 1:39:45 AM UTC+1, Chung Wu wrote:
>
> Hi there,
>
> I am having difficulty figuring out how to structure the following problem:
>
> Users have different roles/groups:
>
> Admin, Manager, Author
>
> Admins can edit every user, can view list of all users, delete all users
> Manager can edit all users who are not admins or managers, ""
> Author, can only edit themselves, view themselves
>
> Users are associated with Posts
>
> The posts would follow the same logc
>
> Authors can only see posts they have created, Edit them etc
>
> Is there a generic way to do this?
>
> Currently I have views that list all users, post etc but how would I 
> integrate roles/permissions to filter the lists, prevent the user for 
> editing others etc.
>
> Hope you can point me in the right direction
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ChcNGgHMIlUJ.
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