From a5ed2cb9e355008a22d4a49ced5f6dcb1b4bcf97 Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 29 Mar 2024 21:29:06 +0100 Subject: [PATCH] allow planned_event role to add guests --- src/model/tripdetails.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/tripdetails.rs b/src/model/tripdetails.rs index 485e66f..6eafa88 100644 --- a/src/model/tripdetails.rs +++ b/src/model/tripdetails.rs @@ -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 } -- 2.45.2