From afa88b95298c4025e45def9595eb09a608f37713 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 Jul 2024 09:24:26 +0200 Subject: [PATCH] one more error fix :-) --- 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 15f769d..1afda2d 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, "manage_event").await + user.has_role(db, "manage_events").await } else { self.user_is_cox(db, user).await != CoxAtTrip::No }