ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / common / io.ktor.util.pipeline.PipelineContext / validateRole

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