fix: workspace inbox read endpoint permission (#5391)
This commit is contained in:
parent
650328c6f2
commit
f789c72cac
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class NotificationViewSet(BaseViewSet, BasePaginator):
|
||||||
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||||
|
|
||||||
@allow_permission(
|
@allow_permission(
|
||||||
allowed_roles=[ROLE.ADMIN, ROLE.MEMBER], level="WORKSPACE"
|
allowed_roles=[ROLE.ADMIN, ROLE.MEMBER, ROLE.VIEWER, ROLE.GUEST], level="WORKSPACE"
|
||||||
)
|
)
|
||||||
def mark_read(self, request, slug, pk):
|
def mark_read(self, request, slug, pk):
|
||||||
notification = Notification.objects.get(
|
notification = Notification.objects.get(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue