Merge pull request #10120 from Konstantinos07/restrict-irwin

restrict irwin dashboard to hunters only
deepcrayonfish^2
Thibault Duplessis 2021-11-17 08:19:56 +01:00 committed by GitHub
commit a1f2af0552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ final class Irwin(env: Env) extends LilaController(env) {
import lila.irwin.JSONHandlers.reportReader
def dashboard =
Secure(_.SeeReport) { implicit ctx => _ =>
Secure(_.MarkEngine) { implicit ctx => _ =>
env.irwin.api.dashboard map { d =>
Ok(views.html.irwin.dashboard(d))
}

View File

@ -30,7 +30,7 @@ object menu {
a(cls := active.active("tour"), href := routes.TournamentCrud.index(1))("Tournaments"),
isGranted(_.ManageEvent) option
a(cls := active.active("event"), href := routes.Event.manager)("Events"),
isGranted(_.SeeReport) option
isGranted(_.MarkEngine) option
a(cls := active.active("irwin"), href := routes.Irwin.dashboard)("Irwin dashboard"),
isGranted(_.Shadowban) option
a(cls := active.active("panic"), href := routes.Mod.chatPanic)(