Skip to content

Commit

Permalink
Allow authenticated users to access probe
Browse files Browse the repository at this point in the history
  • Loading branch information
u8sand committed Nov 20, 2020
1 parent f5cd8b9 commit 9239bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FAIRshakeAPI/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def attrs(self):
def has_permission(self, user, perm):
if perm in ['list', 'retrieve', 'stats', 'assessments']:
return True
elif perm in ['create', 'add']:
elif perm in ['create', 'add', 'perm']:
return user.is_authenticated or user.is_staff
elif perm in ['modify', 'remove', 'delete', 'update', 'partial_update', 'destroy']:
if self is None:
Expand Down

0 comments on commit 9239bfb

Please sign in to comment.