@rh-support/user-permissions 0.2.46 → 0.2.49
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.
|
@@ -239,8 +239,8 @@ export const userPermissions = {
|
|
|
239
239
|
return true;
|
|
240
240
|
},
|
|
241
241
|
[resourceActions.PATCH]: {
|
|
242
|
-
[CaseListFields.MANAGED_ACCOUNTS]: (user) => {
|
|
243
|
-
return user.isPartner();
|
|
242
|
+
[CaseListFields.MANAGED_ACCOUNTS]: (user, userAccount) => {
|
|
243
|
+
return user.isPartner() || (user.isInternal() && userAccount.secureSupport);
|
|
244
244
|
},
|
|
245
245
|
[CaseListFields.PRODUCTS_FILTER]: (user, userAccount) => {
|
|
246
246
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/user-permissions",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.49",
|
|
4
4
|
"description": "For managing user permissions ",
|
|
5
5
|
"author": "Karan Garg <kgarg@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@casl/react": "^2.3.0",
|
|
42
|
-
"@cee-eng/hydrajs": "4.
|
|
42
|
+
"@cee-eng/hydrajs": "4.9.1",
|
|
43
43
|
"@rh-support/api": "0.3.9",
|
|
44
44
|
"@rh-support/types": "^0.1.3",
|
|
45
45
|
"@rh-support/utils": "^0.1.3",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@casl/ability": "^5.3.1",
|
|
51
|
-
"@cee-eng/hydrajs": "4.
|
|
52
|
-
"@rh-support/api": "0.3.
|
|
51
|
+
"@cee-eng/hydrajs": "4.9.1",
|
|
52
|
+
"@rh-support/api": "0.3.13",
|
|
53
53
|
"@rh-support/types": "0.2.0",
|
|
54
|
-
"@rh-support/utils": "0.2.
|
|
54
|
+
"@rh-support/utils": "0.2.37",
|
|
55
55
|
"lodash": "^4.17.15"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"@types/lodash": "^4.14.136",
|
|
60
60
|
"react": "17.0.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "db6de819479468586b86d6d8a6f0fe6713baddd8"
|
|
63
63
|
}
|