Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group
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
group
Merge requests
!9
Issue
#2876696
: gnode_node_access should check for 'view own unpublished content' permission
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#2876696
: gnode_node_access should check for 'view own unpublished content' permission
issue/group-2876696:2876696-own-unpublished
into
8.x-1.x
Overview
0
Commits
1
Pipelines
0
Changes
4
Open
Jaap Jan Koster
requested to merge
issue/group-2876696:2876696-own-unpublished
into
8.x-1.x
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (HEAD)
and
latest version
latest version
829ad970
1 commit,
4 years ago
4 files
+
19
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/Plugin/GroupContentPermissionProvider.php
+
3
−
2
Options
@@ -117,11 +117,12 @@ class GroupContentPermissionProvider extends GroupContentHandlerBase implements
public
function
getEntityViewUnpublishedPermission
(
$scope
=
'any'
)
{
if
(
$this
->
definesEntityPermissions
)
{
if
(
$this
->
implementsPublishedInterface
)
{
// @todo Implement view own unpublished permission and add it here by
// checking for $this->implementsOwnerInterface.
if
(
$scope
===
'any'
)
{
return
"view
$scope
unpublished
$this->pluginId
entity"
;
}
if
(
$scope
===
'own'
&&
$this
->
implementsOwnerInterface
)
{
return
"view
$scope
unpublished
$this->pluginId
entity"
;
}
}
}
return
FALSE
;
Loading