summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/story.module2
-rw-r--r--modules/story/story.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/story.module b/modules/story.module
index 0d1094591..003541eea 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -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>";
}
diff --git a/modules/story/story.module b/modules/story/story.module
index 0d1094591..003541eea 100644
--- a/modules/story/story.module
+++ b/modules/story/story.module
@@ -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>";
}