fix: linter errors
This commit is contained in:
parent
d63363fc97
commit
c459c7414b
2 changed files with 7 additions and 3 deletions
|
|
@ -144,8 +144,12 @@ frappe.ui.form.Share = class Share {
|
|||
|
||||
// Add custom permissions
|
||||
var custom_perm_types = me.frm.get_docinfo().custom_perm_types || [];
|
||||
custom_perm_types.forEach(function(perm) {
|
||||
args[perm] = $(d.body).find(".add-share-" + perm).prop("checked") ? 1 : 0;
|
||||
custom_perm_types.forEach(function (perm) {
|
||||
args[perm] = $(d.body)
|
||||
.find(".add-share-" + perm)
|
||||
.prop("checked")
|
||||
? 1
|
||||
: 0;
|
||||
});
|
||||
|
||||
frappe.call({
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ def add(doctype, name, user=None, read=1, write=0, submit=0, share=0, everyone=0
|
|||
share=share,
|
||||
everyone=everyone,
|
||||
notify=notify,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue