@bigbinary/neeto-molecules 1.0.47 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32102,13 +32102,16 @@ var _excluded = ["label", "to", "icon", "description"];
32102
32102
  var Links = function Links(_ref) {
32103
32103
  var navLinks = _ref.navLinks;
32104
32104
  var location = reactRouterDom.useLocation();
32105
- var filterByPermission = ramda.curry(function (_ref2) {
32106
- var permission = _ref2.permission;
32107
- return permission ? initializers.globalProps.permissions.includes(permission) : true;
32105
+ var filterByPermissions = ramda.curry(function (_ref2) {
32106
+ var permissions = _ref2.permissions;
32107
+ if (permissions) {
32108
+ return ramda.is(Array, permissions) ? permissions.some(ramda.includes(ramda.__, initializers.globalProps.permissions)) : initializers.globalProps.permissions.includes(permissions);
32109
+ }
32110
+ return true;
32108
32111
  });
32109
32112
  return /*#__PURE__*/React__default["default"].createElement("div", {
32110
32113
  className: "neeto-molecules-sidebar__links"
32111
- }, navLinks.filter(filterByPermission).map(function (_ref3, mainIndex) {
32114
+ }, navLinks.filter(filterByPermissions).map(function (_ref3, mainIndex) {
32112
32115
  var label = _ref3.label,
32113
32116
  to = _ref3.to,
32114
32117
  icon = _ref3.icon,