Web-based responsive document annotation tool
activeannoservice / common / io.ktor.util.pipeline.PipelineContext / validateRole
fun PipelineContext<
Unit
, ApplicationCall>.validateRole(requiredRoles:
List
<
String
>, onlyOneMustMatch:
Boolean
= false):
Boolean
Extension function on a PipelineContext to validate a role and return true if the user is authorized, false otherwise