@rh-support/user-permissions 2.5.137 → 2.5.139
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.
|
@@ -91,7 +91,7 @@ export const userPermissions = {
|
|
|
91
91
|
},
|
|
92
92
|
[resources.CASE_GROUPS]: {
|
|
93
93
|
[resourceActions.READ]: (user, userAccount) => {
|
|
94
|
-
return user.isOrgAdmin();
|
|
94
|
+
return user.isOrgAdmin() && (userAccount === null || userAccount === void 0 ? void 0 : userAccount.caseGroupEnabled);
|
|
95
95
|
},
|
|
96
96
|
[resourceActions.CREATE](user, userAccount) {
|
|
97
97
|
return user.isOrgAdmin();
|
|
@@ -283,7 +283,7 @@ export const userPermissions = {
|
|
|
283
283
|
return user.isInternal();
|
|
284
284
|
},
|
|
285
285
|
[CaseListFields.GROUPS_FILTER]: (user, userAccount) => {
|
|
286
|
-
return
|
|
286
|
+
return userAccount === null || userAccount === void 0 ? void 0 : userAccount.caseGroupEnabled;
|
|
287
287
|
},
|
|
288
288
|
[CaseListFields.CREATOR_FILTER]: (user, userAccount) => {
|
|
289
289
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/user-permissions",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.139",
|
|
4
4
|
"description": "For managing user permissions ",
|
|
5
5
|
"author": "Karan Garg <kgarg@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@casl/react": "^3.1.0",
|
|
43
43
|
"@cee-eng/hydrajs": "^4.18.113",
|
|
44
44
|
"@rh-support/types": "2.0.26",
|
|
45
|
-
"@rh-support/utils": "2.5.
|
|
45
|
+
"@rh-support/utils": "2.5.121",
|
|
46
46
|
"lodash": "^4.17.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"defaults and supports es6-module",
|
|
62
62
|
"maintained node versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "25e583b62d2c134f01811158805d24b70da32847"
|
|
65
65
|
}
|