Merge pull request 'one more error fix :-)' (#641) from fix into staging

Reviewed-on: Ruderverein-Donau-Linz/rowt#641
This commit is contained in:
philipp 2024-07-24 09:25:10 +02:00
commit bdfcc6bc0a

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_event").await user.has_role(db, "manage_events").await
} else { } else {
self.user_is_cox(db, user).await != CoxAtTrip::No self.user_is_cox(db, user).await != CoxAtTrip::No
} }