mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔧 Fix returned type
This commit is contained in:
parent
8704784f0b
commit
4cdf671766
1 changed files with 2 additions and 2 deletions
|
@ -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"]:
|
||||
|
|
Loading…
Reference in a new issue