Skip to content

Commit

Permalink
Update plio/permissions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dalmia authored May 26, 2021
1 parent ef2adef commit 97683fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plio/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def has_object_permission(self, request, view, obj):
OrganizationTenantMiddleware.get_organization_shortcode(request)
)
if organization_shortcode == DEFAULT_TENANT_SHORTCODE:
# This is user's personal workspace in the shared DB schema.
# Only plios created by the user are allowed to access.
# this is the user's personal workspace in the public DB schema
# only plios created by the user can be accessed
return request.user == obj.created_by

# checking if user is a member of the organization
Expand Down

0 comments on commit 97683fe

Please sign in to comment.