This commit is contained in:
naomi 2018-05-11 14:43:42 +02:00
parent f2e7e8b6be
commit 85260daa0e

View File

@ -29,7 +29,7 @@ class OCActorAccessControlHandler extends EntityAccessControlHandler {
switch ($operation) { switch ($operation) {
case 'view': case 'view':
if (!$entity->isPublished()) { if (!$entity->isPublished()) {
return AccessResult::allowedIfallowedIf( return AccessResult::allowedIf(
$account->hasPermission("view unpublished $bundle entities") $account->hasPermission("view unpublished $bundle entities")
or ($is_case_context && $account->hasPermission("view unpublished $bundle entities")) or ($is_case_context && $account->hasPermission("view unpublished $bundle entities"))
); );