only-allow-finalizing-logbook-once #643

Merged
philipp merged 3 commits from only-allow-finalizing-logbook-once into staging 2024-07-26 10:34:55 +02:00
Showing only changes of commit 4229a4e021 - 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, "planned_event").await
user.has_role(db, "manage_event").await
} else {
self.user_is_cox(db, user).await != CoxAtTrip::No
}