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

- added access check to the menu.create links.

parent 2410cf51
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ function story_save($op, $node) {
}
function story_link($type) {
if ($type == "menu.create") {
if ($type == "menu.create" && user_access("post content")) {
$links[] = "<a href=\"module.php?mod=node&op=add&type=story\" title=\"". t("Add a new story.") ."\">". t("create story") ."</a>";
}
......
......@@ -56,7 +56,7 @@ function story_save($op, $node) {
}
function story_link($type) {
if ($type == "menu.create") {
if ($type == "menu.create" && user_access("post content")) {
$links[] = "<a href=\"module.php?mod=node&op=add&type=story\" title=\"". t("Add a new story.") ."\">". t("create story") ."</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