show user icon in all vorstand users
This commit is contained in:
@ -865,7 +865,7 @@ impl<'r> FromRequest<'r> for VorstandUser {
|
||||
if user.has_role(db, "Vorstand").await {
|
||||
Outcome::Success(VorstandUser(user))
|
||||
} else {
|
||||
Outcome::Error((Status::Forbidden, LoginError::NotACox))
|
||||
Outcome::Forward(Status::Forbidden)
|
||||
}
|
||||
}
|
||||
Outcome::Error(f) => Outcome::Error(f),
|
||||
|
Reference in New Issue
Block a user