Beispiel #1
0
 def has_permission(self, request, view):
     if (request.method in permissions.SAFE_METHODS or
             acl.action_allowed(request, 'OperatorDashboard', '*')):
         return True
     return OperatorPermission.user_is_operator(request.user)
Beispiel #2
0
 def has_permission(self, request, view):
     if (request.method in permissions.SAFE_METHODS
             or acl.action_allowed(request, 'OperatorDashboard', '*')):
         return True
     return OperatorPermission.user_is_operator(request.user)
Beispiel #3
0
 def has_permission(self, request, view):
     return OperatorPermission.user_is_operator(request.user)
Beispiel #4
0
 def has_permission(self, request, view):
     return OperatorPermission.user_is_operator(request.user)
Beispiel #5
0
 def has_permission(self, request, view):
     if request.method in permissions.SAFE_METHODS:
         return True
     return OperatorPermission.user_is_operator(request.user)