typo
This commit is contained in:
parent
f2e7e8b6be
commit
85260daa0e
@ -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"))
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user