Compare commits
2 Commits
4229a4e021
...
84e76e8d65
Author | SHA1 | Date | |
---|---|---|---|
84e76e8d65 | |||
afa88b9529 |
@ -213,7 +213,7 @@ ORDER BY day;",
|
|||||||
|
|
||||||
pub(crate) async fn user_allowed_to_change(&self, db: &SqlitePool, user: &User) -> bool {
|
pub(crate) async fn user_allowed_to_change(&self, db: &SqlitePool, user: &User) -> bool {
|
||||||
if self.belongs_to_event(db).await {
|
if self.belongs_to_event(db).await {
|
||||||
user.has_role(db, "manage_event").await
|
user.has_role(db, "manage_events").await
|
||||||
} else {
|
} else {
|
||||||
self.user_is_cox(db, user).await != CoxAtTrip::No
|
self.user_is_cox(db, user).await != CoxAtTrip::No
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user