mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-01 20:29:49 -04:00
Only show inbound stuff if service has permission
Only services that have inbound SMS turned on should be able to see the dashboard and ‘Received messages’ page. There’s probably a cleaner way (decorator) of doing this permissions stuff, but I think it can wait until we ship this.
This commit is contained in:
@@ -55,10 +55,12 @@ def service_json(
|
||||
branding='govuk',
|
||||
created_at=None,
|
||||
letter_contact_block=None,
|
||||
permissions=[]
|
||||
permissions=None,
|
||||
):
|
||||
if users is None:
|
||||
users = []
|
||||
if permissions is None:
|
||||
permissions = []
|
||||
return {
|
||||
'id': id_,
|
||||
'name': name,
|
||||
|
||||
Reference in New Issue
Block a user