summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-07-01 21:45:25 +0000
committerDries Buytaert <dries@buytaert.net>2003-07-01 21:45:25 +0000
commit7997ebb9820f0fe6cd8220aefb9365d29c6ee426 (patch)
treefb7b0fa862eef41bdafaf41ccb495d9886793daa /modules/blog/blog.module
parentdc15ba06e05df99885d0024b2fc9173291e79038 (diff)
downloadbrdo-7997ebb9820f0fe6cd8220aefb9365d29c6ee426.tar.gz
brdo-7997ebb9820f0fe6cd8220aefb9365d29c6ee426.tar.bz2
- Bugfix: added more permissions checks. Patches #60-62 by Al. Should fix
bug #2163 and #2164.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index e360431c1..939ba82b1 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -65,7 +65,9 @@ function blog_user($type, &$edit, &$user) {
switch ($type) {
case "view_public":
case "view_private":
- return form_item(t("Blog"), l(t("view recent blog entries"), "blog/$user->uid", array("title" => t("Read %username's latest blog entries.", array("%username" => $user->name)))));
+ if (user_access("maintain personal blog", $user)) {
+ return form_item(t("Blog"), l(t("view recent blog entries"), "blog/$user->uid", array("title" => t("Read %username's latest blog entries.", array("%username" => $user->name)))));
+ }
}
}