mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
fix in permission engine: allow restrictions based on custom field
This commit is contained in:
@@ -287,7 +287,11 @@ pscript.PermEngine.prototype.show_match_dialog=function(details) {
|
||||
me.render_match_dialog(r, details);
|
||||
}
|
||||
// load the rules
|
||||
$c_obj('Permission Control','get_defaults', details.match + '~~~' + (this.profiles ? 'No' : 'Yes'), callback);
|
||||
$c_obj('Permission Control','get_defaults', {
|
||||
match: details.match,
|
||||
profiles: this.profiles ? "No" : "Yes",
|
||||
doctype: sel_val(me.type_select)
|
||||
}, callback);
|
||||
}
|
||||
|
||||
// --------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user