@rh-support/user-permissions 2.5.151 → 2.5.153
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.
|
@@ -88,7 +88,7 @@ export const userPermissions = {
|
|
|
88
88
|
},
|
|
89
89
|
[resources.CASE_GROUPS]: {
|
|
90
90
|
[resourceActions.READ]: (user, userAccount) => {
|
|
91
|
-
return user.isOrgAdmin() && (userAccount === null || userAccount === void 0 ? void 0 : userAccount.caseGroupEnabled);
|
|
91
|
+
return user.isOrgAdmin() && ((userAccount === null || userAccount === void 0 ? void 0 : userAccount.caseGroupEnabled) || user.isInternal());
|
|
92
92
|
},
|
|
93
93
|
[resourceActions.CREATE](user, userAccount) {
|
|
94
94
|
return user.isOrgAdmin();
|
|
@@ -281,7 +281,7 @@ export const userPermissions = {
|
|
|
281
281
|
return user.isInternal();
|
|
282
282
|
},
|
|
283
283
|
[CaseListFields.GROUPS_FILTER]: (user, userAccount) => {
|
|
284
|
-
return userAccount === null || userAccount === void 0 ? void 0 : userAccount.caseGroupEnabled;
|
|
284
|
+
return user.isInternal() || (userAccount === null || userAccount === void 0 ? void 0 : userAccount.caseGroupEnabled);
|
|
285
285
|
},
|
|
286
286
|
[CaseListFields.CREATOR_FILTER]: (user, userAccount) => {
|
|
287
287
|
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.153",
|
|
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.114",
|
|
44
44
|
"@rh-support/types": "2.0.26",
|
|
45
|
-
"@rh-support/utils": "2.5.
|
|
45
|
+
"@rh-support/utils": "2.5.134",
|
|
46
46
|
"lodash": "^4.17.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"defaults and supports es6-module",
|
|
64
64
|
"maintained node versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "88d89bff33ac253421a7d05cb12f9d36212b2b4a"
|
|
67
67
|
}
|