code: function resolveOnlyPermissionMap(deferred, map) {
      if (!map.only.length) {
        deferred.resolve();
        return;
      }
  
      var onlyPromises = map.resolvePropertyValidity(map.only);
      $q.any(onlyPromises)
        .then(function (resolvedPermissions) {
          deferred.resolve(resolvedPermissions);
        })
        .catch(function (rejectedPermission) {
          deferred.reject(rejectedPermission);
        });
    }
docs: Resolves flat set of "only" privileges
  @methodOf permission.PermAuthorization
  @private
  
  @param deferred {Object} Promise defer
  @param map {permission.PermissionMap} Access rights map