src/Annotations/CtrlAuth.php
public function validate(RequestApplicationInterface $app)
    {
        $this->processPermissions();
        if (empty($this->permissions)) {
            return resolve(true);
        }
        $promises = [];
        foreach ($this->permissions as $permissionName) {
            $promises[] = $app->user->can($permissionName);
        }
        return !empty($promises) ? any($promises) : reject(false);
    }
public function validate(RequestApplicationInterface $app)
    {
        $this->processPermissions();
        if (empty($this->permissions)) {
            return resolve(true);
        }
        $promises = [];
        foreach ($this->permissions as $permissionName) {
            $promises[] = $app->user->can($permissionName);
        }
        return !empty($promises) ? any($promises) : reject(false);
    }
Validation callback
@param RequestApplicationInterface $app
@return ExtendedPromiseInterface