We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfa5a6f commit 37d12ecCopy full SHA for 37d12ec
1 file changed
pdf_on_submit/public/js/pdf_button_utils.js
@@ -32,6 +32,8 @@ pdf_on_submit.add_pdf_button = async function (frm) {
32
33
frm.remove_custom_button(__("PDF"));
34
35
+ if (!frm.has_perm("print")) return;
36
+
37
frm.add_custom_button(__("PDF"), async () => {
38
// Open the popup synchronously while still in the user-gesture context,
39
// before any await, to avoid browser popup blockers.
0 commit comments