@rh-support/user-permissions 0.2.62 → 0.2.65
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userPermissions.d.ts","sourceRoot":"","sources":["../../src/userPermissions.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"userPermissions.d.ts","sourceRoot":"","sources":["../../src/userPermissions.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,eAAe,EAAE,gBA6S7B,CAAC"}
|
|
@@ -117,8 +117,10 @@ export const userPermissions = {
|
|
|
117
117
|
},
|
|
118
118
|
},
|
|
119
119
|
[resources.ACCOUNTS_FILTER]: {
|
|
120
|
-
[resourceActions.READ]: (user
|
|
121
|
-
|
|
120
|
+
[resourceActions.READ]: (user) => {
|
|
121
|
+
// Here we are only checking `isInternal` because internal user only having functionality to search for accounts where below permission
|
|
122
|
+
// is being used.
|
|
123
|
+
return !!user.isInternal();
|
|
122
124
|
},
|
|
123
125
|
},
|
|
124
126
|
[resources.CASE_DETAILS]: {
|
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.65",
|
|
4
4
|
"description": "For managing user permissions ",
|
|
5
5
|
"author": "Karan Garg <kgarg@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@casl/react": "^2.3.0",
|
|
42
|
-
"@cee-eng/hydrajs": "4.12.
|
|
42
|
+
"@cee-eng/hydrajs": "4.12.7",
|
|
43
43
|
"@rh-support/api": "0.3.9",
|
|
44
44
|
"@rh-support/types": "^0.1.3",
|
|
45
45
|
"@rh-support/utils": "^0.1.3",
|
|
46
|
-
"lodash": "^4.17.
|
|
46
|
+
"lodash": "^4.17.21",
|
|
47
47
|
"react": "17.0.2"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@casl/ability": "^5.3.1",
|
|
51
|
-
"@cee-eng/hydrajs": "4.12.
|
|
51
|
+
"@cee-eng/hydrajs": "4.12.7",
|
|
52
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.48",
|
|
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": "e4bbdcf60f5ca9c6427a3655a7d264680c692b37"
|
|
63
63
|
}
|