Skip to content

Commit a87a8e8

Browse files
committed
loeaddsD
1 parent a04cf3f commit a87a8e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rgi/booking/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub fn delete(r_id: i32, usr: AuthToken) -> Option<String> {
121121
let reservation = booking.filter(id.eq(r_id)).first::<Reservation>(&con).ok()?;
122122

123123
if reservation.author.trim() != usr.user.email.trim() {
124+
println!("fuck");
124125
None? // you shouldn't be able to delete others' either
125126
}
126127
}

0 commit comments

Comments
 (0)