feat(api/issuesBySequenceId): add api to retrieve issue based on its sequence identitifier (#4170)
This commit is contained in:
parent
d9f11733ad
commit
7f99b9a554
4 changed files with 78 additions and 1 deletions
|
|
@ -79,6 +79,16 @@ class ProjectEntityPermission(BasePermission):
|
|||
if request.user.is_anonymous:
|
||||
return False
|
||||
|
||||
# Handle requests based on project__identifier
|
||||
if hasattr(view, "project__identifier") and view.project__identifier:
|
||||
if request.method in SAFE_METHODS:
|
||||
return ProjectMember.objects.filter(
|
||||
workspace__slug=view.workspace_slug,
|
||||
member=request.user,
|
||||
project__identifier=view.project__identifier,
|
||||
is_active=True,
|
||||
).exists()
|
||||
|
||||
## Safe Methods -> Handle the filtering logic in queryset
|
||||
if request.method in SAFE_METHODS:
|
||||
return ProjectMember.objects.filter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue