def revokeRequest()

in app/controllers/RevokePermissions.scala [30:47]


  def revokeRequest(accountId: String) = authAction { implicit request =>
    (for {
      account <- janusData.accounts.find(accountId == _.authConfigKey)
    } yield {
      logger.info(
        s"REVOKE request in started for $accountId by ${username(request.user)}"
      )
      Ok(views.html.revokeRequest(account, request.user, janusData))
        .withHeaders(CACHE_CONTROL -> "no-cache")
    }) getOrElse {
      logger.warn(
        s"Account not found: REVOKE request for $accountId by ${username(request.user)}"
      )
      NotFound(
        views.html.error("Account not found", Some(request.user), janusData)
      )
    }
  }