Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Jan 8, 2025
1 parent 51e7e4e commit 7870e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workshop/workshop.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class WorkshopService {
throw new LocaleException(responses.BANDAGE_NOT_FOUND, 404);
}

if (bandage.User?.UserSettings?.banned && (!session || !hasAccess(session.user, RolesEnum.ManageBandages))) {
if (bandage.User?.UserSettings?.banned && !hasAccess(session?.user, RolesEnum.ManageBandages)) {
throw new LocaleException(responses.BANDAGE_NOT_FOUND, 404);
}

Expand Down

0 comments on commit 7870e50

Please sign in to comment.