fix: linter errors

This commit is contained in:
Saqib Ansari 2025-11-10 14:13:04 +05:30
parent d63363fc97
commit c459c7414b
2 changed files with 7 additions and 3 deletions

View file

@ -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({

View file

@ -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,
)