diff --git a/src/EntityOperations.php b/src/EntityOperations.php index 9282753..5326436 100644 --- a/src/EntityOperations.php +++ b/src/EntityOperations.php @@ -7,7 +7,7 @@ use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Form\FormBuilderInterface; -use Drupal\Core\Session\AccountProxyInterface; +use Drupal\Core\Session\AccountInterface; use Drupal\Core\TypedData\TranslatableInterface; use Drupal\workbench_moderation\Event\WorkbenchModerationEvents; use Drupal\workbench_moderation\Event\WorkbenchModerationTransitionEvent; @@ -49,7 +49,7 @@ class EntityOperations { /** * The current user service. * - * @var \Drupal\Core\Session\AccountProxyInterface + * @var \Drupal\Core\Session\AccountInterface */ protected $currentUser; @@ -66,10 +66,10 @@ class EntityOperations { * The event dispatcher. * @param \Drupal\workbench_moderation\RevisionTrackerInterface $tracker * The revision tracker. - * @param \Drupal\Core\Session\AccountProxyInterface $current_user + * @param \Drupal\Core\Session\AccountInterface $current_user * The current user service. */ - public function __construct(ModerationInformationInterface $moderation_info, EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, EventDispatcherInterface $event_dispatcher, RevisionTrackerInterface $tracker, AccountProxyInterface $current_user) { + public function __construct(ModerationInformationInterface $moderation_info, EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, EventDispatcherInterface $event_dispatcher, RevisionTrackerInterface $tracker, AccountInterface $current_user) { $this->moderationInfo = $moderation_info; $this->entityTypeManager = $entity_type_manager; $this->eventDispatcher = $event_dispatcher; diff --git a/workbench_moderation.permissions.yml b/workbench_moderation.permissions.yml index 2ab1799..7710e44 100644 --- a/workbench_moderation.permissions.yml +++ b/workbench_moderation.permissions.yml @@ -21,7 +21,7 @@ view latest version: description: View the latest version of an entity. (Also requires "View any unpublished content" permission) moderate entities that cannot edit: - title: Moderate entities that cannot edit + title: Moderate without edit access description: Allows a user to bypass edit access checks when displaying the moderation form. permission_callbacks: