Merge pull request #10120 from Konstantinos07/restrict-irwin
restrict irwin dashboard to hunters onlydeepcrayonfish^2
commit
a1f2af0552
|
@ -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))
|
||||
}
|
||||
|
|
|
@ -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)(
|
||||
|
|
Loading…
Reference in New Issue