-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I'm testing template constraints as shown in the documentation, but when I try to compile, I get the error:
not found: value restrict
not found: value roles
I'm using:
playVersion = "2.6.23"
scalaVersion = "2.12"
be.objectify:deadbolt-java_2.12:2.6.2
template code:
@import be.objectify.deadbolt.java.views.html.di.{restrict, restrictOr}
@import be.objectify.deadbolt.java.utils.TemplateUtils.{allOf, anyOf}
@restrict(roles = anyOf(allOf("foo", "bar"))) {
Subject requires the foo role for this to be visible
}
lucassklp
Metadata
Metadata
Assignees
Labels
No labels