Suppor user.hasRole returning a promise

In case, e.g. the role has to be looked up in a db