only-last-30-days-notifications #331

Merged
philipp merged 7 commits from only-last-30-days-notifications into staging 2024-04-01 22:38:38 +02:00
Showing only changes of commit 7a28f0360d - Show all commits

View File

@ -138,7 +138,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, "admin").await user.has_role(db, "planned_event").await
} else { } else {
self.user_is_cox(db, user).await != CoxAtTrip::No self.user_is_cox(db, user).await != CoxAtTrip::No
} }