diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-02-28 20:05:56 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-02-28 20:05:56 +0000 |
commit | f8372fa3067ffb12fbfa944c2f0048646796d4bd (patch) | |
tree | 9416e39d506b85db27932987fbcb34c25772fe87 | |
parent | 2410cf51c8777d173d9a05ec514b6d7678539922 (diff) | |
download | brdo-f8372fa3067ffb12fbfa944c2f0048646796d4bd.tar.gz brdo-f8372fa3067ffb12fbfa944c2f0048646796d4bd.tar.bz2 |
- added access check to the menu.create links.
-rw-r--r-- | modules/story.module | 2 | ||||
-rw-r--r-- | modules/story/story.module | 2 |
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>"; } |