You are here

public function PublishContentAccess::accessPublishEditable in Publish Content 8

Access publish content which you have access to edit for.

1 call to PublishContentAccess::accessPublishEditable()
PublishContentAccess::access in src/Access/PublishContentAccess.php

File

src/Access/PublishContentAccess.php, line 96

Class

PublishContentAccess
Access class checking the permissions for publishing and unpublishing.

Namespace

Drupal\publishcontent\Access

Code

public function accessPublishEditable() {
  return $this->account
    ->hasPermission('publish editable content') && $this->node
    ->access('update', $this->account);
}