summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-07-13 20:40:46 +0000
committerDries Buytaert <dries@buytaert.net>2004-07-13 20:40:46 +0000
commit3613729d4f1ad8675305445e2717856b2c377faa (patch)
treecb80c11a018a9c68dbc25f924619a6a87fc73f68 /modules/blogapi/blogapi.module
parent50d78e9855b529651f3c3ef05419215fcea58e21 (diff)
downloadbrdo-3613729d4f1ad8675305445e2717856b2c377faa.tar.gz
brdo-3613729d4f1ad8675305445e2717856b2c377faa.tar.bz2
- Patch #8398 by TDobes: changed permissions for the blog, story, and page modules (and all occurrances elsewhere) to match their 4.4.x equivalents. In the discussion when these permissions were introduced, it was decided that "edit own ..." was clearer, but "maintain personal ..." slipped into CVS HEAD anyway, while "edit own ..." landed in the 4.4.x branch.
Changes are as follows: "maintain personal blog" -> "edit own blog" (aggregator.module, blog.module, blogapi.module) "maintain personal pages" -> "edit own pages" (page.module) "maintain personal stories" -> "edit own stories (story.module)
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r--modules/blogapi/blogapi.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 7f38508ee..9218e8fb3 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -424,7 +424,7 @@ function blogapi_validate_user($username, $password) {
$user = user_load(array('name' => $username, 'pass' => $password, 'status' => 1));
if ($user->uid) {
- if (user_access('maintain personal blog')) {
+ if (user_access('edit own blog')) {
return $user;
}
else {