We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25272e3 commit 95a2ba3Copy full SHA for 95a2ba3
services/export/pod-export/src/server.ts
@@ -181,8 +181,13 @@ export function createServer (storageConfig: StorageConfiguration): { app: Expre
181
throw new ApiError(400, 'Missing required parameters')
182
}
183
184
+ const decodedToken = decodeToken(token)
185
+ if (decodedToken.extra?.readonly !== undefined) {
186
+ throw new ApiError(403, 'Forbidden')
187
+ }
188
+
189
const platformClient = await createPlatformClient(token)
- const { account } = decodeToken(token)
190
+ const account = decodedToken.account
191
192
const txOperations = new TxOperations(platformClient, socialId)
193
0 commit comments