From b93de8e8f7df128ef9c57bb1e2b450e5f0941b90 Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Fri, 18 Oct 2024 14:44:30 +0200 Subject: [PATCH] Fix agents shortcuts permission --- temba/api/internal/tests.py | 2 +- temba/settings_common.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/temba/api/internal/tests.py b/temba/api/internal/tests.py index 4738ccaf9c..e365da38ff 100644 --- a/temba/api/internal/tests.py +++ b/temba/api/internal/tests.py @@ -125,7 +125,7 @@ def test_notifications(self): def test_shortcuts(self): endpoint_url = reverse("api.internal.shortcuts") + ".json" - self.assertGetNotPermitted(endpoint_url, [None, self.agent]) + self.assertGetNotPermitted(endpoint_url, [None]) self.assertPostNotAllowed(endpoint_url) self.assertDeleteNotAllowed(endpoint_url) diff --git a/temba/settings_common.py b/temba/settings_common.py index 8f439eded5..988871ea83 100644 --- a/temba/settings_common.py +++ b/temba/settings_common.py @@ -689,6 +689,7 @@ "msgs.msg_create", "orgs.org_read", "orgs.user_list", + "tickets.shortcut_list", ), }