summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-09 09:51:35 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-09 09:51:35 +0000
commit33f455d2df47ef80dd5b3c736762cecd23b0ba63 (patch)
treebb98ef555f3b1844b2043668c8539cfe99b71a8c /modules/blogapi/blogapi.module
parent7de29914a9cbb6d82e4d5798f46565322e41b021 (diff)
downloadbrdo-33f455d2df47ef80dd5b3c736762cecd23b0ba63.tar.gz
brdo-33f455d2df47ef80dd5b3c736762cecd23b0ba63.tar.bz2
#153998 by David_Rothstein and myself: clean up permissions in book, blog, blogapi, forum and locale modules
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r--modules/blogapi/blogapi.module9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 821c35f9f..a4090d4a2 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -21,6 +21,13 @@ function blogapi_help($path, $arg) {
}
/**
+ * Implementation of hook_perm().
+ */
+function blogapi_perm() {
+ return array('administer content with blog api');
+}
+
+/**
* Implementation of hook_xmlrpc().
*/
function blogapi_xmlrpc() {
@@ -508,7 +515,7 @@ function blogapi_validate_user($username, $password) {
$user = user_authenticate(array('name' => $username, 'pass' => $password));
if ($user->uid) {
- if (user_access('edit own blog', $user)) {
+ if (user_access('administer content with blog api', $user)) {
return $user;
}
else {