fix in permission engine: allow restrictions based on custom field

This commit is contained in:
Anand Doshi
2012-12-31 12:04:36 +05:30
parent f9a3c8fcdc
commit e9c6ecc0d8
2 changed files with 14 additions and 3 deletions

View File

@@ -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);
}
// --------------------------------------------