Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to limit approval to superusers? #3

Open
rodrigo-c opened this issue Mar 17, 2010 · 1 comment
Open

Is it possible to limit approval to superusers? #3

rodrigo-c opened this issue Mar 17, 2010 · 1 comment

Comments

@rodrigo-c
Copy link

Question: is it possible to have only SuperUsers be able to approve changes/additions? I.E.: non-super admin users can create or change things, but not publish.

@copiesofcopies
Copy link
Contributor

You could create your own decorator and use that instead of @staff_member_required to decorate the views in in views.py. However, I think that a more robust solution to the moderator-permissions question is warranted. I'd like to designate a group of moderators for various models, or even models with certain attributes. That's obviously a much more extensive change, and I'm not sure what would be the best way to do it, but there should be some more flexibility in choosing moderators at any rate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants