playframework - Play authenticate (Deadbolt) restrict tag in view script not being processed -


i have working web application uses deadbolt module.

every thing working fine except unable add restrict tag view script. have tried..

@@restrict( @@group( "user"  )  ) {        <p> howdy </p> }  #{deadbolt.restrict roles:[['user']]}          <p> howdy </p> #{/deadbolt.restrict} 

both of above displayed on page, text, without interpolation.

however following works correctly....

@subjectnotpresent() {

howdy

}

tia, chet

it seems trying use deadbolt 1 (which play 1.x) in play 2.x application. instead of deadbolt-1 should use deadbolt-2.

then this:

@import be.objectify.deadbolt.java.views.html._ ... @pattern("permission-name") {     ...  } 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -