From 73beaf8e5140455ea0970e940d1af720cc402e06 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Tue, 16 Apr 2024 21:07:22 +0200 Subject: [PATCH] unify API access permission check --- API/DemoController.php | 2 +- CHANGELOG.md | 6 +++++- composer.json | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/API/DemoController.php b/API/DemoController.php index b7f98da..4c46123 100644 --- a/API/DemoController.php +++ b/API/DemoController.php @@ -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) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7aac715..b025278 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/composer.json b/composer.json index d724839..ba2025c 100644 --- a/composer.json +++ b/composer.json @@ -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" @@ -17,7 +17,7 @@ ], "extra": { "kimai": { - "require": 20100, + "require": 21500, "name": "Developer demo" } },