How odd - why dont you just match on the req unapply rather that this awkward
sub match?
You need to do something like:
LiftRules.httpAuthProtectedResource.prepend {
case Req(restricted :: _,_,_) = Full(AuthRole(admin))
}
LiftRules.authentication =
According to:
http://scala-tools.org/mvnsites-snapshots/liftweb/lift-base/lift-webkit/scaladocs/net/liftweb/http/LiftRules$object.html#httpAuthProtectedResource
It says that if I have a rule that responds with Empty, it means that
authentications is performed, but not an authorization check.