mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #12822 from appwrite/feat-notification-sdk-fix
Update notification authentication to require ADMIN role and restrict…
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user