The wrong permission is referenced in two places. "access printer-friendly version" should be "access print".

--- a/print.pages.inc
+++ b/../print_new/print.pages.inc
@@ -746,7 +746,7 @@ function _print_generate_book($nid, $format) {
drupal_not_found();
return FALSE;
}
- elseif (!node_access('view', $node) || (!user_access('access printer-friendly version'))) {
+ elseif (!node_access('view', $node) || (!user_access('access print'))) {
// Access is denied
drupal_access_denied();
return FALSE;

--- a/./print_ui/print_ui.module
+++ b/../print_new/print_ui.module
@@ -674,7 +674,7 @@ function print_ui_link_allowed($link, $args) {
$book_link = variable_get('print_' . $link['format'] . '_book_link', PRINT_UI_BOOK_LINK_DEFAULT);
switch ($book_link) {
case 1:
- if (user_access('access printer-friendly version')) {
+ if (user_access('access print')) {
return PRINT_UI_ALLOW_BOOK_LINK;
}
break;

Comments

bart atlas created an issue. See original summary.

nitesh sethia’s picture

Status: Needs review » Closed (fixed)

The latest version of Print Module has this change.