user()->currentAccessToken(); if ($token instanceof ApiKey && AdminAcl::check($token, $this->resource, AdminAcl::READ_CONFIGURATION)) { $node = $this->parameter('node', Node::class); if ($token->node_id === $node->id) { return true; } } return parent::authorize(); } }