Index: modules/blogapi/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v retrieving revision 1.110 diff -u -r1.110 blogapi.module --- modules/blogapi/blogapi.module 28 Nov 2007 10:29:19 -0000 1.110 +++ modules/blogapi/blogapi.module 5 Dec 2007 22:23:00 -0000 @@ -21,6 +21,13 @@ } /** + * Implementation of hook_perm(). + */ +function blogapi_perm() { + return array('add content through blog api'); +} + +/** * Implementation of hook_xmlrpc(). */ function blogapi_xmlrpc() { @@ -510,7 +517,7 @@ $user = user_authenticate($username, $password); if ($user->uid) { - if (user_access('edit own blog', $user)) { + if (user_access('add content through blog api', $user)) { return $user; } else {