Ver Fonte

HUE-3679 [editor] 'unicode' object has no attribute 'is_superuser' when saving a query

Romain Rigaux há 9 anos atrás
pai
commit
a2b7a0b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      desktop/libs/notebook/src/notebook/api.py

+ 1 - 1
desktop/libs/notebook/src/notebook/api.py

@@ -243,7 +243,7 @@ def save_notebook(request):
 
   if notebook.get('parentUuid'):
     notebook_doc = Document2.objects.get(uuid=notebook['parentUuid'])
-    notebook_doc.can_read_or_exception(notebook['parentUuid'])
+    notebook_doc.can_read_or_exception(request.user)
   elif notebook.get('id'):
     notebook_doc = Document2.objects.get(id=notebook['id'])
   else: