show user icon in all vorstand users
Some checks are pending
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Successful in 15m40s

This commit is contained in:
2024-03-04 16:37:53 +01:00
parent b6a318df85
commit 8edbf15235
4 changed files with 49 additions and 3 deletions

View File

@ -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),