Skip to content

Commit

Permalink
Fix permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 5, 2025
1 parent 897a3a4 commit e78db7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions care/security/authorization/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def can_create_user(self, user):
return True
roles = self.get_role_from_permissions([UserPermissions.can_create_user.value])
return (
OrganizationUser.objects.filter(user=user, roles_id__in=roles).exists()
OrganizationUser.objects.filter(user=user, role_id__in=roles).exists()
or FacilityOrganizationUser.objects.filter(
user=user, roles_id__in=roles
user=user, role_id__in=roles
).exists()
)

Expand Down

0 comments on commit e78db7c

Please sign in to comment.