mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Automatically configure EMAIL_GATEWAY_BOT as a superuser.
(imported from commit 1e74ae458e446edec59eb1ab238cede969c4dbbc)
This commit is contained in:
		@@ -174,5 +174,7 @@ NAGIOS_STAGING_RECEIVE_BOT = 'cordelia@zulip.com'
 | 
			
		||||
ZULIP_ADMINISTRATOR = 'support@zulip.com'
 | 
			
		||||
 | 
			
		||||
# TODO: Store this info in the database
 | 
			
		||||
API_SUPER_USERS = set(["tabbott/extra@mit.edu", "emailgateway@zulip.com",
 | 
			
		||||
                       "irc-bot@zulip.com", "bot1@customer35.invalid"])
 | 
			
		||||
# Also note -- the email gateway bot is automatically added.
 | 
			
		||||
API_SUPER_USERS = set(["tabbott/extra@mit.edu",
 | 
			
		||||
                       "irc-bot@zulip.com",
 | 
			
		||||
                       "bot1@customer35.invalid"])
 | 
			
		||||
 
 | 
			
		||||
@@ -288,6 +288,9 @@ for bot in REALM_BOTS:
 | 
			
		||||
        bot_email = bot['email_template'] % (ADMIN_DOMAIN,)
 | 
			
		||||
        vars()[bot['var_name'] ] = bot_email
 | 
			
		||||
 | 
			
		||||
if EMAIL_GATEWAY_BOT not in API_SUPER_USERS:
 | 
			
		||||
    API_SUPER_USERS.add(EMAIL_GATEWAY_BOT)
 | 
			
		||||
 | 
			
		||||
# Static files and minification
 | 
			
		||||
 | 
			
		||||
STATIC_URL = '/static/'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user