Commit f8372fa3 authored by Kjartan's avatar Kjartan

- added access check to the menu.create links.

parent 2410cf51
......@@ -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>";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment