mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Remvoe obsolete code
This commit is contained in:
@@ -10,8 +10,6 @@ class EventPermission(BasePermission):
|
||||
|
||||
def has_permission(self, request, view):
|
||||
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
|
||||
|
||||
if request.method not in SAFE_METHODS and hasattr(view, 'write_permission'):
|
||||
|
||||
Reference in New Issue
Block a user