mamweb/seminar/permissions.py

8 lines
200 B
Python
Raw Normal View History

from rest_framework.permissions import BasePermission
class AllowWrite(BasePermission):
def has_permission(self, request, view):
return request.user.has_perm('auth.org')