Skip to content

Commit 6b33372

Browse files
committed
changed analytics app data for Adam.admin to not have permissions for adding Mailing Outs
1 parent 44f69b1 commit 6b33372

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/main_menu_data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,9 +792,9 @@ def get_task_app_data(add_models: tuple = tuple(), prefix: str = '') -> dict:
792792
{
793793
'name': 'Mailing Outs',
794794
'object_name': 'MailingOut',
795-
'perms': get_perms(),
795+
'perms': get_perms(add=False),
796796
'admin_url': f'/en/{PREFIX}massmail/mailingout/',
797-
'add_url': f'/en/{PREFIX}massmail/mailingout/add/',
797+
'add_url': None,
798798
'view_only': False
799799
},
800800
{
@@ -1149,9 +1149,9 @@ def get_task_app_data(add_models: tuple = tuple(), prefix: str = '') -> dict:
11491149
{
11501150
'name': 'Mailing Outs',
11511151
'object_name': 'MailingOut',
1152-
'perms': get_perms(),
1152+
'perms': get_perms(add=False),
11531153
'admin_url': f'/en/{ADMIN_PREFIX}massmail/mailingout/',
1154-
'add_url': f'/en/{ADMIN_PREFIX}massmail/mailingout/add/',
1154+
'add_url': None,
11551155
'view_only': False
11561156
},
11571157
{

0 commit comments

Comments
 (0)