You are here

public function PublishContentAccess::accessPublishAny in Publish Content 8

Access publish any content.

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

File

src/Access/PublishContentAccess.php, line 82

Class

PublishContentAccess
Access class checking the permissions for publishing and unpublishing.

Namespace

Drupal\publishcontent\Access

Code

public function accessPublishAny() {
  return $this->account
    ->hasPermission('publish any content');
}