Skip to content

Commit

Permalink
merge conditions
Browse files Browse the repository at this point in the history
Co-authored-by: Amin Latifi <[email protected]>
  • Loading branch information
ae2079 and aminlatifi authored Aug 14, 2024
1 parent 5207549 commit e99cf10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/userResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class UserResolver {
): Promise<User> {
try {
const currentUserId = user?.userId;
if (!currentUserId) {
if (!currentUserId || currentUserId != userId) {
throw new Error(i18n.__(translationErrorMessagesKeys.UN_AUTHORIZED));
}

Expand Down

0 comments on commit e99cf10

Please sign in to comment.