utopia-ui 3.0.0-alpha.123 → 3.0.0-alpha.124
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 +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1413,9 +1413,10 @@ function usePermissionsManager(initialPermissions) {
|
|
|
1413
1413
|
// Wenn 'item' nicht gesetzt ist, ignorieren wir die Überprüfung von 'user_created'
|
|
1414
1414
|
!item || !p.permissions || !p.permissions._and ||
|
|
1415
1415
|
p.permissions._and.some(function (condition) {
|
|
1416
|
+
var _a;
|
|
1416
1417
|
return condition.user_created &&
|
|
1417
1418
|
condition.user_created._eq === "$CURRENT_USER" &&
|
|
1418
|
-
item.user_created.id === (user === null || user === void 0 ? void 0 : user.id);
|
|
1419
|
+
((_a = item.user_created) === null || _a === void 0 ? void 0 : _a.id) === (user === null || user === void 0 ? void 0 : user.id);
|
|
1419
1420
|
}));
|
|
1420
1421
|
});
|
|
1421
1422
|
}
|
|
@@ -3477,7 +3478,7 @@ function ItemFormPopup(props) {
|
|
|
3477
3478
|
map.closePopup();
|
|
3478
3479
|
return [3 /*break*/, 13];
|
|
3479
3480
|
case 5:
|
|
3480
|
-
item = items.find(function (i) { var _a; return i.user_created.id === (user === null || user === void 0 ? void 0 : user.id) && ((
|
|
3481
|
+
item = items.find(function (i) { var _a, _b; return ((_a = i.user_created) === null || _a === void 0 ? void 0 : _a.id) === (user === null || user === void 0 ? void 0 : user.id) && ((_b = i.layer) === null || _b === void 0 ? void 0 : _b.itemType.name) === props.layer.itemType.name; });
|
|
3481
3482
|
console.log(item);
|
|
3482
3483
|
uuid = crypto.randomUUID();
|
|
3483
3484
|
success = false;
|