summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--print.module2
-rw-r--r--print_mail/print_mail.module2
-rw-r--r--print_pdf/print_pdf.module2
3 files changed, 6 insertions, 0 deletions
diff --git a/print.module b/print.module
index 5130420..745b96d 100644
--- a/print.module
+++ b/print.module
@@ -305,7 +305,9 @@ function print_nodeapi(&$node, $op = 'view', $teaser, $page) {
_print_set_node_fields($node);
break;
case 'update':
+ if (user_access('administer print') || user_access('node-specific print configuration')) {
_print_node_conf_modify($node->nid, $node->print_display, $node->print_display_comment, $node->print_display_urllist);
+ }
break;
case 'delete':
db_query("DELETE FROM {print_node_conf} WHERE nid = %d", $node->nid);
diff --git a/print_mail/print_mail.module b/print_mail/print_mail.module
index 438455e..f2b0ecb 100644
--- a/print_mail/print_mail.module
+++ b/print_mail/print_mail.module
@@ -218,7 +218,9 @@ function print_mail_nodeapi(&$node, $op = 'view', $teaser, $page) {
_print_mail_set_node_fields($node);
break;
case 'update':
+ if (user_access('administer print') || user_access('node-specific print configuration')) {
_print_mail_node_conf_modify($node->nid, $node->print_mail_display, $node->print_mail_display_comment, $node->print_mail_display_urllist);
+ }
break;
case 'delete':
db_query("DELETE FROM {print_mail_node_conf} WHERE nid = %d", $node->nid);
diff --git a/print_pdf/print_pdf.module b/print_pdf/print_pdf.module
index 71948ef..eca9505 100644
--- a/print_pdf/print_pdf.module
+++ b/print_pdf/print_pdf.module
@@ -223,7 +223,9 @@ function print_pdf_nodeapi(&$node, $op = 'view', $teaser, $page) {
_print_pdf_set_node_fields($node);
break;
case 'update':
+ if (user_access('administer print') || user_access('node-specific print configuration')) {
_print_pdf_node_conf_modify($node->nid, $node->print_pdf_display, $node->print_pdf_display_comment, $node->print_pdf_display_urllist);
+ }
break;
case 'delete':
db_query("DELETE FROM {print_pdf_node_conf} WHERE nid = %d", $node->nid);