Compare commits

..

No commits in common. "84e76e8d6511a5c2e99977fd00977b7f76debe62" and "4229a4e021bebdfd568361fea7f1bd3ef138fd6d" have entirely different histories.

View File

@ -213,7 +213,7 @@ ORDER BY day;",
pub(crate) async fn user_allowed_to_change(&self, db: &SqlitePool, user: &User) -> bool { pub(crate) async fn user_allowed_to_change(&self, db: &SqlitePool, user: &User) -> bool {
if self.belongs_to_event(db).await { if self.belongs_to_event(db).await {
user.has_role(db, "manage_events").await user.has_role(db, "manage_event").await
} else { } else {
self.user_is_cox(db, user).await != CoxAtTrip::No self.user_is_cox(db, user).await != CoxAtTrip::No
} }