fix roles
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user