code: function hasRole(role, user) {
        user = user || getCurrentUser();
        return _.findIndex(userRoles, {role: user.role}) >= _.findIndex(userRoles, {role: role});
      }
docs: @ngdoc function
  @name hasRole
  @methodOf auth.service:Auth
  @description
  Check if a user has at least the same role as the given one
  
  @param {String} role The role to check against
  @param {Object|User} [user] The user object to check, if no user is given the current user is used.