Skip to content

Commit

Permalink
feat: add room to name options on ValidatePermissionRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Jul 17, 2023
1 parent 9590306 commit 3ba9fa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chats/apps/api/v1/external/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def has_object_permission(self, request, view, obj):
"sector": "pk",
"queue_uuid": "queues",
"queue": "queues",
"room__uuid": "queues__rooms",
"room": "queues__rooms",
}


Expand All @@ -63,6 +65,8 @@ def __init__(self, request_data, project) -> None:
"project_uuid",
"sector_uuid",
"queue_uuid",
"room__uuid",
"room",
]:
self.level_name = LEVEL_NAME_MAPPING[key]
self.level_id = self.data.get(key, None)
Expand Down

0 comments on commit 3ba9fa2

Please sign in to comment.