Merge pull request 'allow planned_event role to add guests' (#324) from staging into main

Reviewed-on: Ruderverein-Donau-Linz/rowt#324
This commit is contained in:
philipp 2024-03-29 21:29:38 +01:00
commit 7a28f0360d

View File

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