Don't show single and child table doctype in User Permission's allowed doctypes (#3973)
This commit is contained in:
parent
ca5ce399f0
commit
ebaee98ecb
1 changed files with 11 additions and 0 deletions
|
|
@ -2,6 +2,17 @@
|
|||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('User Permission', {
|
||||
setup: function(frm) {
|
||||
frm.set_query("allow", function() {
|
||||
return {
|
||||
"filters": {
|
||||
issingle: 0,
|
||||
istable: 0
|
||||
}
|
||||
};
|
||||
});
|
||||
},
|
||||
|
||||
refresh: function(frm) {
|
||||
frm.add_custom_button(__('View Permitted Documents'),
|
||||
() => frappe.set_route('query-report', 'Permitted Documents For User',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue