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 -0500

siovene gravatar image siovene flag of Finland
381 7 4 24
http://www.astrobin.com/

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

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 :)

delete close flag offensive retag edit

Comments

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

Evgeny ( 2012-10-31 13:35:57 -0500 )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 ( 2012-10-31 13:47:40 -0500 )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 ( 2012-10-31 14:06:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

siovene gravatar image siovene flag of Finland
381 7 4 24
http://www.astrobin.com/

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.

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 38 times

Last updated: Oct 31 '12