From 6311421177c8f0bf20bb12419d4442360d4e9cfc Mon Sep 17 00:00:00 2001 From: Daniel Clarke Date: Fri, 20 Nov 2020 14:26:19 -0500 Subject: [PATCH] Allow authenticated users to access probe --- FAIRshakeAPI/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAIRshakeAPI/models.py b/FAIRshakeAPI/models.py index 963b001..3090db8 100644 --- a/FAIRshakeAPI/models.py +++ b/FAIRshakeAPI/models.py @@ -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', 'probe']: return user.is_authenticated or user.is_staff elif perm in ['modify', 'remove', 'delete', 'update', 'partial_update', 'destroy']: if self is None: