utopia-ui 3.0.6 → 3.0.7

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
@@ -3099,7 +3099,7 @@ function usePermissionsManager(initialPermissions) {
3099
3099
  p.collection === collectionName &&
3100
3100
  ((p.policy.name === (user === null || user === void 0 ? void 0 : user.role.name) &&
3101
3101
  (!item || evaluatePermissions(p.permissions))) ||
3102
- (p.policy === "$t:public_label" &&
3102
+ (p.policy.name === "$t:public_label" &&
3103
3103
  (((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)) &&
3104
3104
  (!item || evaluatePermissions(p.permissions)))));
3105
3105
  });