public function checkPermissions(...$args) { $this->app->checkPermissions(...$args); }
/** * Permissions won't check if object has environment scope and role Acl::RESOURCE_ANALYTICS_ACCOUNT * {@inheritdoc} * @see ApiController::checkPermissions() */ public function checkPermissions(...$args) { if ($this->getScope() === ScopeInterface::SCOPE_ENVIRONMENT && isset($args[0]) && $args[0] == Acl::RESOURCE_ANALYTICS_ACCOUNT && empty($args[1])) { return; } parent::checkPermissions(...$args); }