mohiva/play-silhouette — pull request #231 by rfranco (2014-11-24 14:06:52+00:00)
Title: add logic operator to Authorization

add logic operator to be easly to reuse authorization.

```scala
case class WithProvider(provider: String) extends Authorization[User] {
def isAuthorized(user: User)(implicit request: RequestHeader, lang: Lang) = {
user.identityId.providerId == provider
}
}
```

```scala
def myAction = SecuredAction(WithProvider("twitter") || WithProvider("facebook")) { implicit request =>
// do something here
}

def myAction = SecuredAction(!WithProvider("twitter")) { implicit request =>
// do something here
}

def myAction = SecuredAction(WithProvider("twitter") && WithProvider("facebook")) { implicit request =>
// do something here
}
```