backend adaptations due to cox change role
This commit is contained in:
@@ -146,7 +146,7 @@ WHERE day = ? AND planned_starting_time = ?
|
||||
// User is a guest, no need to bother.
|
||||
continue;
|
||||
};
|
||||
if !user.has_role(db, "cox").await {
|
||||
if !user.allowed_to_steer(db).await {
|
||||
// User is no cox, no need to bother
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user