Commit 610ad02e authored by Dries's avatar Dries

- Patch #4765: fixed broken permission in blogapi module

parent ebe241da
......@@ -344,7 +344,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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment