mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Remove existing broadcast permission form
This will be replaced by a new form that has it's own template, route etc as it will vary quite a lot from the existing service permission form.
This commit is contained in:
@@ -116,17 +116,6 @@ class Service(JSONModel):
|
||||
permissions | permission if on else permissions - permission,
|
||||
)
|
||||
|
||||
def force_broadcast_permission_on(self):
|
||||
ret = self.update_permissions(
|
||||
set(self.permissions) - {'email', 'sms', 'letter'} | {'broadcast'}
|
||||
)
|
||||
broadcast_org_id = current_app.config['BROADCAST_ORGANISATION_ID']
|
||||
organisations_client.update_service_organisation(
|
||||
service_id=self.id,
|
||||
org_id=broadcast_org_id
|
||||
)
|
||||
return ret
|
||||
|
||||
def update_permissions(self, permissions):
|
||||
return self.update(permissions=list(permissions))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user