@import security._ @import be.objectify.deadbolt.core.utils.TemplateUtils._ @import be.objectify.deadbolt.core.PatternType @import be.objectify.deadbolt.java.views.html._
pattern allows you to use regular expressions to determine access.
This content should be visible
@@pattern("printers.edit") { This content should be visible }
This content should NOT be visible
@@pattern("printers.foo") { This content should not visible }
This content should be visible
@@pattern("(.)*\\.edit", PatternType.REGEX) { This content should be visible }
This content should NOT be visible
@@pattern("(.)*\\.foo", PatternType.REGEX) { This content should NOT be visible }