utopia-ui 3.0.9 → 3.0.10
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 +0 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3061,10 +3061,6 @@ function usePermissionsManager(initialPermissions) {
|
|
3061
3061
|
});
|
3062
3062
|
}, []);
|
3063
3063
|
var hasUserPermission = useCallback(function (collectionName, action, item, layer) {
|
3064
|
-
console.log(layer === null || layer === void 0 ? void 0 : layer.name);
|
3065
|
-
console.log(user === null || user === void 0 ? void 0 : user.role.name);
|
3066
|
-
console.log(action);
|
3067
|
-
console.log(permissions.filter(function (p) { var _a, _b, _c; return user ? (((_a = p.policy) === null || _a === void 0 ? void 0 : _a.name) === ((_b = user === null || user === void 0 ? void 0 : user.role) === null || _b === void 0 ? void 0 : _b.name)) : (((_c = p.policy) === null || _c === void 0 ? void 0 : _c.name) === "$t:public_label" && !user); }));
|
3068
3064
|
var evaluateCondition = function (condition) {
|
3069
3065
|
var _a, _b, _c;
|
3070
3066
|
if (((_a = condition.user_created) === null || _a === void 0 ? void 0 : _a._eq) === "$CURRENT_USER") {
|