controllers.Validation
the laziness in orErr/orCorr means you can log security or other issues right there - it only calls it when failing
this class and implicits below allow stuff like:
for ( au <- auth orCorr cNoAuth; // auts returns an option hasQuota <- (au.isAdmin || au.quota.canUpdate) orCorr cNoQuotaUpdates; )
the laziness in orErr/orCorr means you can log security or other issues right there - it only calls it when failing
this class and implicits below allow stuff like:
for ( au <- auth orCorr cNoAuth; // auts returns an option hasQuota <- (au.isAdmin || au.quota.canUpdate) orCorr cNoQuotaUpdates; )