Skip to content

Commit

Permalink
unify API access permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Apr 16, 2024
1 parent d30c945 commit 73beaf8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion API/DemoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#[Route(path: '/demos')]
#[OA\Tag(name: 'Demo')]
#[IsGranted('ROLE_USER')]
#[IsGranted('API')]
final class DemoController extends AbstractController
{
public function __construct(private readonly ViewHandlerInterface $viewHandler)
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## Version 2.3.0

Compatibility: requires minimum Kimai 2.15.0

- unify API access permission check

## Version 2.2.0

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Showcase plugin for Kimai, with demos for many extension points within the core",
"homepage": "https://github.com/Keleo/DemoBundle",
"type": "kimai-plugin",
"version": "2.2.0",
"version": "2.3.0",
"keywords": [
"kimai",
"kimai-plugin"
Expand All @@ -17,7 +17,7 @@
],
"extra": {
"kimai": {
"require": 20100,
"require": 21500,
"name": "Developer demo"
}
},
Expand Down

0 comments on commit 73beaf8

Please sign in to comment.