소스 검색

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

Romain Rigaux 9 년 전
부모
커밋
a2b7a0b40b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: