public function getMiddleware() {
        $middleware = $this->middleware;
        if($this->usesPermissions()) {
            $middleware[] = self::PERMISSIONS_FILTER_NAME . ':' . $this->getPermissions();
        }

        return $middleware;
    }