code: function preparePermissionEvaluation(permissions) {
      return function () {
        var promises = permissions.map(function (permissionName) {
          if (PermPermissionStore.hasPermissionDefinition(permissionName)) {
            var permission = PermPermissionStore.getPermissionDefinition(permissionName);
  
            return permission.validatePermission();
          }
  
          return $q.reject(permissionName);
        });
  
        return $q.all(promises);
      };
    }
docs: Creates an injectable function that evaluates a set of permissions in place of a role validation function
  @methodOf permission.Role
  @private
  
  @param permissions {Array<String>} List of permissions to evaluate
  
  @return {Function}