You are here

private function SeedsManager::userHasAccess in Seeds Toolbar 8

Check if the user has access to internal link.

1 call to SeedsManager::userHasAccess()
SeedsManager::buildMenu in src/SeedsManager.php
Build "Add" menu item.

File

src/SeedsManager.php, line 101

Class

SeedsManager
Helper function for SeedsToolbar.

Namespace

Drupal\seeds_toolbar

Code

private function userHasAccess($url) {
  return $url
    ->access($this->currentUser);
}