update #703

Merged
philipp merged 80 commits from update into main 2024-08-21 16:35:48 +02:00
Showing only changes of commit bdfcc6bc0a - Show all commits

View File

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