Skip to content

Commit

Permalink
Merge pull request #5565 from nyaruka/fix-agent-shortcuts-perms
Browse files Browse the repository at this point in the history
Fix agents shortcuts permission
  • Loading branch information
norkans7 authored Oct 18, 2024
2 parents 518117a + b93de8e commit 7777bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion temba/api/internal/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions temba/settings_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@
"msgs.msg_create",
"orgs.org_read",
"orgs.user_list",
"tickets.shortcut_list",
),
}

Expand Down

0 comments on commit 7777bb4

Please sign in to comment.