Skip to content

Commit

Permalink
avatar updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Oct 23, 2024
1 parent f07119f commit 64299b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class UserService {
}

async getAvatar(session: Session, user_id: string) {
const can_view = hasAccess(session?.user, RolesEnum.UpdateUsers);
const can_view = hasAccess(session?.user, RolesEnum.UpdateUsers) || session?.user?.id === user_id;
const user = await this.prisma.user.findFirst({
where: {
discordId: user_id,
Expand Down

0 comments on commit 64299b9

Please sign in to comment.