aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-08-14 09:37:56 +0200
committerGitHub <noreply@github.com>2024-08-14 09:37:56 +0200
commit8cb4679e5ea6246568c9e581a5d474d9c958b21a (patch)
tree609f4f51a484af8c5b2b104b8558c52c0e5c0fe9 /apps/updatenotification
parent73c88919ffd81b1a75878bcf3bbf9a050e6d2abd (diff)
parent8d823344e39d97fc00483736fb76e16a9be126f0 (diff)
downloadnextcloud-server-8cb4679e5ea6246568c9e581a5d474d9c958b21a.tar.gz
nextcloud-server-8cb4679e5ea6246568c9e581a5d474d9c958b21a.zip
Merge pull request #46821 from nextcloud/refactor/updatenotification/security-attributes
Diffstat (limited to 'apps/updatenotification')
-rw-r--r--apps/updatenotification/lib/Controller/ChangelogController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/Controller/ChangelogController.php b/apps/updatenotification/lib/Controller/ChangelogController.php
index b3ce77b11d9..709cd7ef9e5 100644
--- a/apps/updatenotification/lib/Controller/ChangelogController.php
+++ b/apps/updatenotification/lib/Controller/ChangelogController.php
@@ -11,6 +11,8 @@ namespace OCA\UpdateNotification\Controller;
use OCA\UpdateNotification\Manager;
use OCP\App\IAppManager;
use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http\Attribute\NoAdminRequired;
+use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\OpenAPI;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Services\IInitialState;
@@ -33,9 +35,9 @@ class ChangelogController extends Controller {
* This page is only used for clients not support showing the app changelog feature in-app and thus need to show it on a dedicated page.
* @param string $app App to show the changelog for
* @param string|null $version Version entry to show (defaults to latest installed)
- * @NoCSRFRequired
- * @NoAdminRequired
*/
+ #[NoAdminRequired]
+ #[NoCSRFRequired]
public function showChangelog(string $app, ?string $version = null): TemplateResponse {
$version = $version ?? $this->appManager->getAppVersion($app);
$appInfo = $this->appManager->getAppInfo($app) ?? [];