Compare commits
No commits in common. "bdfcc6bc0a1a546bc94e54ebb405f2129085e5ae" and "6cd555298d01b45df5f5259deb228fdf36ec1c5b" have entirely different histories.
bdfcc6bc0a
...
6cd555298d
@ -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_events").await
|
||||
user.has_role(db, "manage_event").await
|
||||
} else {
|
||||
self.user_is_cox(db, user).await != CoxAtTrip::No
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user