Update notification authentication to require ADMIN role and restrict service platforms to console only

This commit is contained in:
eldadfux committed 2026-07-08 18:11:10 +01:00
1 parent 3cfd603eb4
commit ceeed2b627
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -335,7 +335,7 @@ return [
'tests' => true,
'optional' => false,
'icon' => '',
'platforms' => ['client', 'server', 'console'],
'platforms' => ['console'],
],
'advisor' => [
'key' => 'advisor',
@@ -37,7 +37,7 @@ class Update extends Action
group: null,
name: 'update',
description: '/docs/references/notifications/update-notification.md',
auth: [AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN],
responses: [
new SDKResponse(
code: Response::STATUS_CODE_OK,
@@ -39,7 +39,7 @@ class XList extends Action
group: null,
name: 'list',
description: '/docs/references/notifications/list-notifications.md',
auth: [AuthType::SESSION, AuthType::JWT],
auth: [AuthType::ADMIN],
responses: [
new SDKResponse(
code: Response::STATUS_CODE_OK,