diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-30 21:30:25 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-30 21:30:25 +0000 |
commit | f3be5516f130c4afc14ff4a452c45e5cd5526be9 (patch) | |
tree | 704be0fbcb78184520e9ff3d7650a5125135b8c5 /modules | |
parent | 70c91e33c244ef4f62228c2ac7e1e30e31011180 (diff) | |
download | brdo-f3be5516f130c4afc14ff4a452c45e5cd5526be9.tar.gz brdo-f3be5516f130c4afc14ff4a452c45e5cd5526be9.tar.bz2 |
#56016, blogapi fails to post with no permission error unless uid=1, patch by samc
Diffstat (limited to 'modules')
-rw-r--r-- | modules/blogapi.module | 2 | ||||
-rw-r--r-- | modules/blogapi/blogapi.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module index 534a30f1b..ce025f913 100644 --- a/modules/blogapi.module +++ b/modules/blogapi.module @@ -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.')); } diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 534a30f1b..ce025f913 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -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.')); } |