From f6207e2994f45b9b7fd43dc6e9c30d75fe9dbb14 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 Jul 2024 08:45:52 +0200 Subject: [PATCH] use proper role name --- 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 ea4d601..15f769d 100644 --- a/src/model/tripdetails.rs +++ b/src/model/tripdetails.rs @@ -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 } -- 2.45.2