summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-05-22 19:27:13 +0000
committerDries Buytaert <dries@buytaert.net>2008-05-22 19:27:13 +0000
commit9a1a6c64679550d211dd4d701c3243132c7ef68a (patch)
treef14391eb350417c38a0ef851f9bddd41698cbd9b /modules/blog
parentfd06c1db21a04ed4da3fe6569602b53475215f3f (diff)
downloadbrdo-9a1a6c64679550d211dd4d701c3243132c7ef68a.tar.gz
brdo-9a1a6c64679550d211dd4d701c3243132c7ef68a.tar.bz2
- Patch #259496 by ksenzee and Desbeers: fixed a permission bug discovered by the tests. Yay.
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module2
-rw-r--r--modules/blog/blog.pages.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 21f58b721..f56660b78 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -171,7 +171,7 @@ function blog_page_user_access($account) {
// The visitor must be able to access the site's content.
// For a blog to 'exist' the user must either be able to
// create new blog entries, or it must have existing posts.
- return $account->uid && user_access('access content') && (user_access('create blog entries', $account) || _blog_post_exists($account));
+ return $account->uid && user_access('access content') && (user_access('create blog content', $account) || _blog_post_exists($account));
}
/**
diff --git a/modules/blog/blog.pages.inc b/modules/blog/blog.pages.inc
index 18375167f..042b089ed 100644
--- a/modules/blog/blog.pages.inc
+++ b/modules/blog/blog.pages.inc
@@ -16,7 +16,7 @@ function blog_page_user($account) {
$items = array();
- if (($account->uid == $user->uid) && user_access('create blog entries')) {
+ if (($account->uid == $user->uid) && user_access('create blog content')) {
$items[] = l(t('Post new blog entry.'), "node/add/blog");
}
else if ($account->uid == $user->uid) {