fix roles

This commit is contained in:
2026-06-30 12:01:13 +03:30
parent c1105c9954
commit d79fa12d65
14 changed files with 136 additions and 14 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ export class ReservesService {
user: AuthUser,
): Promise<Reserve> {
const reserve = await this.findOne(id, user);
if (!this.reservePolicy.canUpdate(user, reserve)) {
if (!this.reservePolicy.canUpdate(user, reserve, updateReserveDto)) {
throw new ForbiddenException();
}