Ask Your Question
0

How can I change Askbot so it sends Feedback emails to superusers but not staff?

asked 2012-10-31 12:55:32 -0600

siovene gravatar image

updated 2012-10-31 13:17:56 -0600

The title says it all. Django has a superuser and staff role, in contrib.auth.models.User.

In my other app (running on the same db), I have some staff member because I need them to access a certain admin page, but I don't want them to receive Askbot's feedback emails :)

edit retag flag offensive close merge delete

Comments

What is the difference between admins and staff? Not sure.

Evgeny gravatar imageEvgeny ( 2012-10-31 13:35:57 -0600 )edit

A superuser is one who can do EVERYTHING, had all permissions by default. A staff member can access to the admin site, but can only do things he has permissions for (see permissions in contrib.auth.User)

siovene gravatar imagesiovene ( 2012-10-31 13:47:40 -0600 )edit

Right now moderators (User.status = 'm' as you found) and administrators receive feedback by design. We did not make distinction between staff and the admin in askbot.

Evgeny gravatar imageEvgeny ( 2012-10-31 14:06:50 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-31 13:49:18 -0600

siovene gravatar image

I've found out how. Feedback emails are emailed to "moderators", in askbot/mail/__init__.py.

Moderators are those with status == 'm' in in contrib.auth.models.User (ah, so this is how Askbot monkey patches User :-)).

I just needed to change that to 'a' (approved) and the problem went away.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-31 12:55:32 -0600

Seen: 257 times

Last updated: Oct 31 '12