Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f3be5516
Commit
f3be5516
authored
Mar 30, 2006
by
Gerhard Killesreiter
Browse files
#56016
, blogapi fails to post with no permission error unless uid=1, patch by samc
parent
70c91e33
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/blogapi.module
View file @
f3be5516
...
...
@@ -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.'
));
}
...
...
modules/blogapi/blogapi.module
View file @
f3be5516
...
...
@@ -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.'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment