Skip to content

Commit

Permalink
fix: network printer settings permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anupamvs committed Oct 7, 2021
1 parent c8efaf4 commit 5387e48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2021-09-17 11:30:16.781655",
"modified": "2021-10-07 11:23:13.799402",
"modified_by": "Administrator",
"module": "Printing",
"name": "Network Printer Settings",
"naming_rule": "Set by user",
"owner": "Administrator",
"permissions": [
{
Expand All @@ -58,6 +59,15 @@
"role": "System Manager",
"share": 1,
"write": 1
},
{
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"share": 1
}
],
"sort_field": "modified",
Expand Down
2 changes: 1 addition & 1 deletion frappe/printing/page/print/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ frappe.ui.form.PrintView = class {
);
}

if (this.print_settings.enable_print_server) {
if (cint(this.print_settings.enable_print_server)) {
this.page.add_menu_item(__('Select Network Printer'), () =>
this.network_printer_setting_dialog()
);
Expand Down

0 comments on commit 5387e48

Please sign in to comment.