Skip to content
Snippets Groups Projects

Issue #2876696: gnode_node_access should check for 'view own unpublished content' permission

Open Issue #2876696: gnode_node_access should check for 'view own unpublished content' permission
Open Jaap Jan Koster requested to merge issue/group-2876696:2876696-own-unpublished into 8.x-1.x
4 files
+ 19
15
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -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