Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xmlsitemap
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
xmlsitemap
Merge requests
!4
xmlsitemap_node: Do not add unpublished nodes.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
xmlsitemap_node: Do not add unpublished nodes.
issue/xmlsitemap-2266933:2266933-unpublished-node-still
into
7.x-2.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Julian Pustkuchen
requested to merge
issue/xmlsitemap-2266933:2266933-unpublished-node-still
into
7.x-2.x
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#2266933
Edited
3 years ago
by
Julian Pustkuchen
0
0
Merge request reports
Compare
7.x-2.x
7.x-2.x (HEAD)
and
latest version
latest version
2824ff20
1 commit,
3 years ago
1 file
+
6
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
xmlsitemap_node/xmlsitemap_node.module
+
6
−
0
Options
@@ -325,6 +325,12 @@ function xmlsitemap_node_view_access($node, $account = NULL) {
return
TRUE
;
}
// After all other relevant preconditions have been checked, deny access if
// the node is unpublished (and the user has no special permission to view unpublished above):
if
(
$node
->
status
==
0
)
{
return
FALSE
;
}
// If the module did not override the access rights, use those set in the
// node_access table.
if
(
$op
!=
'create'
&&
$node
->
nid
)
{
Loading