2020-11-04 01:02:39 +01:00
|
|
|
from rest_framework.permissions import BasePermission
|
|
|
|
|
|
|
|
class AllowWrite(BasePermission):
|
|
|
|
|
2022-12-06 01:02:38 +01:00
|
|
|
def has_permission(self, request, view):
|
|
|
|
return request.user.has_perm('auth.org')
|
2020-11-04 01:02:39 +01:00
|
|
|
|