utopia-ui 3.0.0-alpha.214 → 3.0.0-alpha.215

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.
package/dist/index.js CHANGED
@@ -2877,16 +2877,16 @@ function usePermissionsManager(initialPermissions) {
2877
2877
  condition.user_created._eq === "$CURRENT_USER" &&
2878
2878
  ((_a = item.user_created) === null || _a === void 0 ? void 0 : _a.id) === (user === null || user === void 0 ? void 0 : user.id);
2879
2879
  }))
2880
- || (!user && p.role == null) &&
2880
+ ||
2881
2881
  ((layer === null || layer === void 0 ? void 0 : layer.public_edit_items) || ((_a = item === null || item === void 0 ? void 0 : item.layer) === null || _a === void 0 ? void 0 : _a.public_edit_items)) &&
2882
- (
2883
- // Wenn 'item' nicht gesetzt ist, ignorieren wir die Überprüfung von 'public_edit'
2884
- !item ||
2885
- ((_c = (_b = p.permissions) === null || _b === void 0 ? void 0 : _b._and) === null || _c === void 0 ? void 0 : _c.some(function (condition) {
2886
- return condition.public_edit &&
2887
- condition.public_edit._eq == true &&
2888
- item.public_edit == true;
2889
- })));
2882
+ (
2883
+ // Wenn 'item' nicht gesetzt ist, ignorieren wir die Überprüfung von 'public_edit'
2884
+ !item ||
2885
+ ((_c = (_b = p.permissions) === null || _b === void 0 ? void 0 : _b._and) === null || _c === void 0 ? void 0 : _c.some(function (condition) {
2886
+ return condition.public_edit &&
2887
+ condition.public_edit._eq == true &&
2888
+ item.public_edit == true;
2889
+ })));
2890
2890
  });
2891
2891
  }
2892
2892
  }, [permissions, user]);