Merge pull request #1141 from rmehta/share-perms
[perms] allow email/print if has write access via share
This commit is contained in:
commit
525f5906c0
1 changed files with 6 additions and 0 deletions
|
|
@ -69,6 +69,12 @@ $.extend(frappe.perm, {
|
|||
perm[0]["write"] = s.write;
|
||||
perm[0]["share"] = s.share;
|
||||
|
||||
if(s.write) {
|
||||
// also give print, email permissions if read
|
||||
// and these permissions exist at level [0]
|
||||
perm[0].email = meta.permissions[0].email;
|
||||
perm[0].print = meta.permissions[0].print;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue