From 4cdf671766e6ee0edfe67c9fa64c7e5bc46ce834 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 8 Nov 2021 19:33:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20returned=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/sophon/notebooks/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/sophon/notebooks/views.py b/backend/sophon/notebooks/views.py index 09c104d..e78a4c7 100644 --- a/backend/sophon/notebooks/views.py +++ b/backend/sophon/notebooks/views.py @@ -22,9 +22,9 @@ class NotebooksViewSet(SophonGroupViewSet, metaclass=abc.ABCMeta): def get_permission_classes(self) -> t.Collection[t.Type[BasePermission]]: if self.action in ["sync", "start", "lock", "unlock", "stop"]: - return Edit + return Edit, else: - super().get_permission_classes() + return super().get_permission_classes() def get_custom_serializer_classes(self): if self.action in ["sync", "start", "lock", "unlock", "stop"]: