'use strict';

function createPermissionRule(rule) {
  if ("resourceRef" in rule) {
    return {
      ...rule,
      resourceType: rule.resourceRef.resourceType
    };
  }
  return rule;
}
const makeCreatePermissionRule = () => (rule) => createPermissionRule(rule);

exports.createPermissionRule = createPermissionRule;
exports.makeCreatePermissionRule = makeCreatePermissionRule;
//# sourceMappingURL=createPermissionRule.cjs.js.map
