Command to turn on mailing list mode per user?

(Chris D) #1

Hi, I’d like to be able to run a command from rails console to enable mailing list mode for specific users so that I can make sure some specific people get emails for new topics posted in categories they are interested in. Is this possible? Also, can I enable it so the users will only get email notifications when topics are posted to a specific category?

TIA,
Chris

(Sam Saffron) #2

Simplest thing is to impersonate them, change the setting, delete your cookies.

If you must

./launcher enter app
rails c
> User.find_by_username('bob').update_columns(mailing_list_mode: true)
6 Likes
(Chris D) #3

thanks @sam :slightly_smiling:

(Dean Taylor) #4

You don’t need to “impersonate” that user…

Just go to that users preferences page and change the setting.

5 Likes
(Sam Saffron) #5

true, don’t know what I am :smoking: today.

3 Likes
(system) automatically bumped #6
(Joshua Rosenfeld) closed #7