@itilite/iui-user-management 0.4.68 → 0.4.70
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -32,9 +32,6 @@ function _extends() {
|
|
|
32
32
|
};
|
|
33
33
|
return _extends.apply(this, arguments);
|
|
34
34
|
}
|
|
35
|
-
function _readOnlyError(name) {
|
|
36
|
-
throw new TypeError("\"" + name + "\" is read-only");
|
|
37
|
-
}
|
|
38
35
|
function _unsupportedIterableToArray(o, minLen) {
|
|
39
36
|
if (!o) return;
|
|
40
37
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -6522,9 +6519,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6522
6519
|
}
|
|
6523
6520
|
var cardApiflag = false;
|
|
6524
6521
|
if (productAccess.card === false || isCardsAdmin === false) {
|
|
6525
|
-
false
|
|
6522
|
+
cardApiflag = false;
|
|
6526
6523
|
} else {
|
|
6527
|
-
true
|
|
6524
|
+
cardApiflag = true;
|
|
6528
6525
|
}
|
|
6529
6526
|
if (!_isError) {
|
|
6530
6527
|
if (isEditMode && editUserId || isProfile) {
|
|
@@ -6954,6 +6951,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6954
6951
|
if (p.id === 3 && !isCardsAdmin && !isProfile) {
|
|
6955
6952
|
p.readOnly = true;
|
|
6956
6953
|
p.disableText = "Only card admin can change this access.";
|
|
6954
|
+
} else if (p.id === 3 && editUserId === (id === null || id === void 0 ? void 0 : id.toString())) {
|
|
6955
|
+
p.readOnly = true;
|
|
6956
|
+
p.disableText = "You cannot update your own card product";
|
|
6957
6957
|
}
|
|
6958
6958
|
return /*#__PURE__*/React.createElement(IUIGrid, {
|
|
6959
6959
|
item: true,
|