소스 검색

HUE-4152 [oozie] Managed document property blocks access to workflows of coordinators

One day we might switch to using True, False and None in case we want to retrieve
only the managed ones, but this does not seem useful now and we use this convention
for the other search attributes.
Romain Rigaux 9 년 전
부모
커밋
e7afa07
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      desktop/core/src/desktop/models.py

+ 2 - 1
desktop/core/src/desktop/models.py

@@ -859,7 +859,8 @@ class Document2QueryMixin(object):
     if not include_history:
       docs = docs.exclude(is_history=True)
 
-    docs = docs.filter(is_managed=include_managed)
+    if not include_managed:
+      docs = docs.exclude(is_managed=True)
 
     if not include_trashed:
       # Since the Trash folder can have multiple directory levels, we need to check full path and exclude those IDs