code: function resolveExceptStatePermissionMap(deferred, map) {
      var exceptPromises = resolveStatePermissionMap(map.except, map);
  
      // Reverse the promises, so if any "except" privileges are not met, the promise rejects
      $q.all(reversePromises(exceptPromises))
        .then(function () {
          resolveOnlyStatePermissionMap(deferred, map);
        })
        .catch(function (rejectedPermissions) {
  
          if (!angular.isArray(rejectedPermissions)) {
            rejectedPermissions = [rejectedPermissions];
          }
  
          deferred.reject(rejectedPermissions[0]);
        });
    }
docs: Resolves compensated set of "except" privileges
  @methodOf permission.ui.PermStateAuthorization
  @private
  
  @param deferred {Object} Promise defer
  @param map {permission.ui.StatePermissionMap} State access rights map