Skip to content

Commit

Permalink
Upgrade to latest version of fastybird/simple-auth (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 29, 2024
1 parent 74dcb8b commit af46578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"fastybird/exchange-library": "dev-main",
"fastybird/json-api": "^0.17",
"fastybird/metadata-library": "dev-main",
"fastybird/simple-auth": "^0.13",
"fastybird/simple-auth": "^0.14",
"fastybird/tools-library": "dev-main",
"ipub/doctrine-timestampable": "^2.0",
"ipub/slim-router": "^0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/Router/ApiRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
private readonly Controllers\DisplayV1 $displayV1Controller,
private readonly Controllers\DataSourcesV1 $dataSourceV1Controller,
private readonly Middleware\Access $uiAccessControlMiddleware,
private readonly SimpleAuthMiddleware\Access $accessControlMiddleware,
private readonly SimpleAuthMiddleware\Authorization $authorizationMiddleware,
private readonly SimpleAuthMiddleware\User $userMiddleware,
)
{
Expand All @@ -72,7 +72,7 @@ public function registerRoutes(Routing\IRouter $router): void
}
});

$routes->addMiddleware($this->accessControlMiddleware);
$routes->addMiddleware($this->authorizationMiddleware);
$routes->addMiddleware($this->userMiddleware);
$routes->addMiddleware($this->uiAccessControlMiddleware);
}
Expand Down

0 comments on commit af46578

Please sign in to comment.