Skip to content

Commit 9239bfb

Browse files
committed
Allow authenticated users to access probe
1 parent f5cd8b9 commit 9239bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FAIRshakeAPI/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def attrs(self):
6060
def has_permission(self, user, perm):
6161
if perm in ['list', 'retrieve', 'stats', 'assessments']:
6262
return True
63-
elif perm in ['create', 'add']:
63+
elif perm in ['create', 'add', 'perm']:
6464
return user.is_authenticated or user.is_staff
6565
elif perm in ['modify', 'remove', 'delete', 'update', 'partial_update', 'destroy']:
6666
if self is None:

0 commit comments

Comments
 (0)