enviar Cancelacion Timbre
This commit is contained in:
@@ -6,7 +6,7 @@ class HasAuthorizationHeader(BasePermission):
|
||||
return 'Authorization' in request.headers
|
||||
|
||||
class ItsAdminToken(BasePermission):
|
||||
def has_permission(self,request,view):
|
||||
def has_permission(self,request,view):
|
||||
return request.user.is_superuser
|
||||
|
||||
class ItsAdminGroup(BasePermission):
|
||||
|
||||
@@ -8,7 +8,7 @@ from django.views.generic.edit import CreateView
|
||||
from rest_framework.authentication import TokenAuthentication
|
||||
from rest_framework.decorators import authentication_classes,api_view,permission_classes
|
||||
from rest_framework.exceptions import AuthenticationFailed
|
||||
from rest_framework.permissions import IsAuthenticated
|
||||
|
||||
|
||||
from rest_framework.views import APIView
|
||||
from rest_framework.response import Response
|
||||
|
||||
Reference in New Issue
Block a user