Add option to make someone portal staff

This commit is contained in:
2020-01-14 01:14:23 +00:00
parent 579966e7aa
commit c22a19736d
4 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class AllowMetadata(BasePermission):
return request.method in ['OPTIONS', 'HEAD']
def is_admin_director(user):
return user.is_staff or user.member.is_director
return user.is_staff or user.member.is_director or user.member.is_staff
class IsOwnerOrAdmin(BasePermission):
def has_object_permission(self, request, view, obj):