You are here

public function PublishContentAccess::accessUnpublishEditableType in Publish Content 8

Access unpublish content of specified which you have access to edit for.

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

File

src/Access/PublishContentAccess.php, line 145

Class

PublishContentAccess
Access class checking the permissions for publishing and unpublishing.

Namespace

Drupal\publishcontent\Access

Code

public function accessUnpublishEditableType() {
  return $this
    ->checkPermission(Perm::UNPUBLISH_EDITABLE_TYPE) && $this->node
    ->access('update', $this->account);
}