Skip to content

Commit

Permalink
/test_sample route fixed for staff readonly (#871)
Browse files Browse the repository at this point in the history
Co-authored-by: Extreme <extreme@pop-os.localdomain>
  • Loading branch information
ishanExtreme and Extreme authored Jun 26, 2022
1 parent 86ab77b commit 3fec58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/facility/models/patient_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def has_write_permission(request):

@staticmethod
def has_read_permission(request):
return request.user.is_superuser or request.user.user_type >= User.TYPE_VALUE_MAP["Staff"]
return request.user.is_superuser or request.user.user_type >= User.TYPE_VALUE_MAP["StaffReadOnly"]

def has_object_read_permission(self, request):
if self.testing_facility:
Expand Down

0 comments on commit 3fec58c

Please sign in to comment.