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 2079394 commit 425db2bCopy full SHA for 425db2b
apps/server/src/services/PostService/index.ts
@@ -525,8 +525,9 @@ export class PostService implements Service {
525
if (temp_only) {
526
if (!username) throw new BadRequestError('username is missing')
527
if (!user) throw new NotFoundError('Invalid username')
528
- if (user.id !== signedUserId)
+ if (user.id !== signedUserId) {
529
throw new UnauthorizedError('You have no permission to load temp posts')
530
+ }
531
532
Object.assign(whereQuery, { is_temp: true })
533
} else {
0 commit comments