Optimisation to reduce authorisation times.

Only the Rights matching the supplied resource name, if any, are examined.