Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
entity
Commits
d50db77d
Commit
d50db77d
authored
Mar 8, 2017
by
Henri MEDOT
Committed by
Wolfgang Ziegler
Mar 8, 2017
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2807275
by anrikun: Notice : Undefined property: stdClass::$nid in node_access()
parent
c6b3a2ee
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/callbacks.inc
+1
-1
1 addition, 1 deletion
modules/callbacks.inc
with
1 addition
and
1 deletion
modules/callbacks.inc
+
1
−
1
View file @
d50db77d
...
...
@@ -673,7 +673,7 @@ function entity_metadata_no_hook_node_access($op, $node = NULL, $account = NULL)
if
(
empty
(
$node
->
vid
)
&&
in_array
(
$op
,
array
(
'create'
,
'update'
)))
{
// This is a new node or the original node.
if
(
isset
(
$node
->
type
))
{
$op
=
!
empty
(
$node
->
is_new
)
&&
$node
->
is_new
?
'create'
:
'update'
;
$op
=
empty
(
$node
->
nid
)
||
!
empty
(
$node
->
is_new
)
?
'create'
:
'update'
;
return
node_access
(
$op
,
$op
==
'create'
?
$node
->
type
:
$node
,
$account
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment