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
99458217
Commit
99458217
authored
Jul 14, 2006
by
Dries
Browse files
- Patch
#73599
by drumm: proper access checking.
parent
e9ed722f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
99458217
...
...
@@ -1737,7 +1737,7 @@ function node_add($type) {
else
{
// If no (valid) node type has been provided, display a node type overview.
foreach
(
node_get_types
()
as
$type
=>
$name
)
{
if
(
module_invoke
(
node_get_base
(
$type
),
'
access
'
,
'create'
,
$type
))
{
if
(
node_
access
(
'create'
,
$type
))
{
$out
=
'<dt>'
.
l
(
$name
,
"node/add/
$type
"
,
array
(
'title'
=>
t
(
'Add a new %s.'
,
array
(
'%s'
=>
$name
))))
.
'</dt>'
;
$out
.
=
'<dd>'
.
implode
(
"
\n
"
,
module_invoke_all
(
'help'
,
'node/add#'
.
$type
))
.
'</dd>'
;
$item
[
$name
]
=
$out
;
...
...
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