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
f7039a67
Commit
f7039a67
authored
Aug 05, 2005
by
Steven Wittens
Browse files
-
#25395
: Allow for more integers in node_access grant_x columns
parent
64299d74
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
f7039a67
...
...
@@ -1881,7 +1881,7 @@ function node_access($op, $node = NULL, $uid = NULL) {
$grants
[]
=
"'"
.
$realm
.
$gid
.
"'"
;
}
}
$sql
.
=
implode
(
','
,
$grants
)
.
') AND grant_'
.
$op
.
' = 1'
;
$sql
.
=
implode
(
','
,
$grants
)
.
') AND grant_'
.
$op
.
'
>
= 1'
;
$result
=
db_query
(
$sql
,
$node
->
nid
);
return
(
db_result
(
$result
));
}
...
...
modules/node/node.module
View file @
f7039a67
...
...
@@ -1881,7 +1881,7 @@ function node_access($op, $node = NULL, $uid = NULL) {
$grants
[]
=
"'"
.
$realm
.
$gid
.
"'"
;
}
}
$sql
.
=
implode
(
','
,
$grants
)
.
') AND grant_'
.
$op
.
' = 1'
;
$sql
.
=
implode
(
','
,
$grants
)
.
') AND grant_'
.
$op
.
'
>
= 1'
;
$result
=
db_query
(
$sql
,
$node
->
nid
);
return
(
db_result
(
$result
));
}
...
...
Write
Preview
Supports
Markdown
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