Loading core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php +3 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter return AccessResult::allowedIfHasPermission($account, 'view test entity translations'); } } if ($entity instanceof EntityPublishedInterface && !$entity->isPublished()) { return AccessResult::neutral('Unpublished entity'); } return AccessResult::allowedIfHasPermission($account, 'view test entity'); } elseif (in_array($operation, ['update', 'delete'])) { Loading Loading
core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php +3 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter return AccessResult::allowedIfHasPermission($account, 'view test entity translations'); } } if ($entity instanceof EntityPublishedInterface && !$entity->isPublished()) { return AccessResult::neutral('Unpublished entity'); } return AccessResult::allowedIfHasPermission($account, 'view test entity'); } elseif (in_array($operation, ['update', 'delete'])) { Loading