Kaynağa Gözat

[fix] Match conditions for shared docs

version-14
Nabin Hait 10 yıl önce
ebeveyn
işleme
a962318f6e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      frappe/model/db_query.py

+ 1
- 1
frappe/model/db_query.py Dosyayı Görüntüle

@@ -297,7 +297,7 @@ class DatabaseQuery(object):


# share is an OR condition, if there is a role permission # share is an OR condition, if there is a role permission
if not only_if_shared and self.shared: if not only_if_shared and self.shared:
self.match_conditions.append(" or {0}".format(self.get_share_condition()))
self.match_conditions.append(self.get_share_condition())


if as_condition: if as_condition:
conditions = "" conditions = ""


Yükleniyor…
İptal
Kaydet