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 499c86e commit 93a128d
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 @@ -45,7 +45,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",
"ipub/doctrine-phone": "^1.6",
"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 @@ -47,7 +47,7 @@ public function __construct(
private readonly Controllers\ConditionsV1 $conditionsV1Controller,
private readonly Controllers\TriggerControlsV1 $controlsV1Controller,
private readonly Middleware\Access $triggersAccessControlMiddleware,
private readonly SimpleAuthMiddleware\Access $accessControlMiddleware,
private readonly SimpleAuthMiddleware\Authorization $authorizationMiddleware,
private readonly SimpleAuthMiddleware\User $userMiddleware,
)
{
Expand All @@ -70,7 +70,7 @@ public function registerRoutes(Routing\IRouter $router): void
}
});

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

0 comments on commit 93a128d

Please sign in to comment.