EnvironmentIndicatorAccessController.php in Environment Indicator 8.2
File
lib/Drupal/environment_indicator/EnvironmentIndicatorAccessController.php
View source
<?php
namespace Drupal\environment_indicator;
use Drupal\Core\Entity\EntityAccessController;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;
class EnvironmentIndicatorAccessController extends EntityAccessController {
protected function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) {
return user_access('administer environment indicator settings', $account);
}
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return user_access('administer environment indicator settings', $account);
}
}