浏览代码

HUE-2969 [oozie] Support shared workflows in coordinator

Romain Rigaux 10 年之前
父节点
当前提交
77316d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/oozie/src/oozie/views/editor2.py

+ 1 - 1
apps/oozie/src/oozie/views/editor2.py

@@ -422,7 +422,7 @@ def edit_coordinator(request):
     LOG.error(smart_str(e))
 
   workflows = [dict([('uuid', d.content_object.uuid), ('name', d.content_object.name)])
-                    for d in Document.objects.get_docs(request.user, Document2, extra='workflow2')]
+                    for d in Document.objects.available_docs(Document2, request.user).filter(extra='workflow2')]
 
   if coordinator_id and not filter(lambda a: a['uuid'] == coordinator.data['properties']['workflow'], workflows):
     raise PopupException(_('You don\'t have access to the workflow of this coordinator.'))