Skip to content
Snippets Groups Projects
Commit 2410cf51 authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- changed the access on the menu.create link to post content.

parent 147cd225
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -95,7 +95,7 @@ function book_link($type, $node = 0, $main = 0) {
$links[] = "<a href=\"module.php?mod=book\" title=\"". t("Read and contribute to the collaborative books.") ."\">". t("collaborative book") ."</a>";
}
if ($type == "menu.create" && user_access("administer nodes")) {
if ($type == "menu.create" && user_access("post content")) {
$links[] = "<a href=\"module.php?mod=node&op=add&type=book\" title=\"". t("Add a new book page.") ."\">". t("create book page") ."</a>";
}
......
......@@ -95,7 +95,7 @@ function book_link($type, $node = 0, $main = 0) {
$links[] = "<a href=\"module.php?mod=book\" title=\"". t("Read and contribute to the collaborative books.") ."\">". t("collaborative book") ."</a>";
}
if ($type == "menu.create" && user_access("administer nodes")) {
if ($type == "menu.create" && user_access("post content")) {
$links[] = "<a href=\"module.php?mod=node&op=add&type=book\" title=\"". t("Add a new book page.") ."\">". t("create book page") ."</a>";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment