Skip to content

not found: value restrictΒ #112

@giancarlobastos

Description

@giancarlobastos

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions