forked from CGM_Public/pretix_original
Remvoe obsolete code
This commit is contained in:
@@ -10,8 +10,6 @@ class EventPermission(BasePermission):
|
|||||||
|
|
||||||
def has_permission(self, request, view):
|
def has_permission(self, request, view):
|
||||||
if not request.user.is_authenticated and not isinstance(request.auth, TeamAPIToken):
|
if not request.user.is_authenticated and not isinstance(request.auth, TeamAPIToken):
|
||||||
if request.method in SAFE_METHODS and request.path.startswith('/api/v1/docs/'):
|
|
||||||
return True
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if request.method not in SAFE_METHODS and hasattr(view, 'write_permission'):
|
if request.method not in SAFE_METHODS and hasattr(view, 'write_permission'):
|
||||||
|
|||||||
Reference in New Issue
Block a user