Commit f3be5516 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#56016, blogapi fails to post with no permission error unless uid=1, patch by samc

parent 70c91e33
......@@ -214,7 +214,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
$edit['body'] = $content;
}
if (!node_access('create', $node)) {
if (!node_access('create', $edit['type'])) {
return blogapi_error(t('You do not have permission to create the type of post you wanted to create.'));
}
......
......@@ -214,7 +214,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
$edit['body'] = $content;
}
if (!node_access('create', $node)) {
if (!node_access('create', $edit['type'])) {
return blogapi_error(t('You do not have permission to create the type of post you wanted to create.'));
}
......
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