minor fix in permissions

This commit is contained in:
Nabin Hait 2015-02-25 18:33:26 +05:30
parent 0072aeb3bb
commit 3935479b22

View file

@ -105,6 +105,12 @@ $.extend(frappe.perm, {
delete perm[0][key];
}
});
$.each(perm, function(i, v) {
if(v===undefined) {
perm[i] = {};
}
});
},
get_match_rules: function(doctype, ptype) {