Skip to content

Commit

Permalink
Reverted unintended change
Browse files Browse the repository at this point in the history
  • Loading branch information
rajpatel24 committed Nov 14, 2024
1 parent f432404 commit 315941e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kobo/apps/organizations/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def has_object_permission(self, request, view, obj):
return True

# Instance must have an attribute named `is_admin`
return obj.organization.is_admin(request.user)
return obj.is_admin(request.user)


class IsOrgOwnerOrAdminOrMember(permissions.BasePermission):
Expand Down

0 comments on commit 315941e

Please sign in to comment.