Sfoglia il codice sorgente

DocShare perm fixed, can read if share permissions (#2171)

version-14
KanchanChauhan 8 anni fa
committed by Rushabh Mehta
parent
commit
6e9fb3b04c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/core/doctype/docshare/docshare.py

+ 1
- 1
frappe/core/doctype/docshare/docshare.py Vedi File

@@ -19,7 +19,7 @@ class DocShare(Document):
self.get_doc().run_method("validate_share", self)

def cascade_permissions_downwards(self):
if self.write:
if self.share or self.write:
self.read = 1

def get_doc(self):


Caricamento…
Annulla
Salva