Commit Graph

1 Commits

Author SHA1 Message Date
Valentin Deniaud 1c3f3d887c utils: add method to check if a user has a role
gitea/django-mellon/pipeline/head Build started... Details
Along with a middleware to allow catching the exception it raises when
the user is missing roles, redirecting them appropriately.

A distinction is made between roles which are obtained at the SSO,
stored in session, and roles which the user could have, statically
stored in database.

todo: ce commit dépend totalement du provisionning tel qu'implémenté par
hobo, il faudrait améliorer ça
2019-07-17 16:26:15 +02:00