in preparation to moving userdata into app, we switched to arbitrary groups
This commit is contained in:
@ -120,7 +120,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.is_admin
|
||||
user.has_role(db, "admin").await
|
||||
} else {
|
||||
self.user_is_cox(db, user).await != CoxAtTrip::No
|
||||
}
|
||||
|
Reference in New Issue
Block a user