mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
enable broadcast org in all environments
This organisation is defined in the config file. It's hard coded to a UUID as defined in the api db migration 0331_add_broadcast_org.
This commit is contained in:
@@ -104,11 +104,10 @@ class Service(JSONModel):
|
||||
set(self.permissions) - {'email', 'sms', 'letter'} | {'broadcast'}
|
||||
)
|
||||
broadcast_org_id = current_app.config['BROADCAST_ORGANISATION_ID']
|
||||
if broadcast_org_id:
|
||||
organisations_client.update_service_organisation(
|
||||
service_id=self.id,
|
||||
org_id=broadcast_org_id
|
||||
)
|
||||
organisations_client.update_service_organisation(
|
||||
service_id=self.id,
|
||||
org_id=broadcast_org_id
|
||||
)
|
||||
return ret
|
||||
|
||||
def update_permissions(self, permissions):
|
||||
|
||||
Reference in New Issue
Block a user