@rh-support/user-permissions 2.5.32 → 2.5.37
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/lib/esm/AuthFramework.js +1 -1
- package/package.json +3 -3
package/lib/esm/AuthFramework.js
CHANGED
|
@@ -8,7 +8,7 @@ import { userPermissions } from './userPermissions';
|
|
|
8
8
|
export const ability = defineAbility((can) => {
|
|
9
9
|
// Initialize abilities here.
|
|
10
10
|
can(['manage', 'patch'], 'all');
|
|
11
|
-
// Abilites will
|
|
11
|
+
// Abilites will be updated in initUserRoles
|
|
12
12
|
});
|
|
13
13
|
export function mapUserToUserAuth(loggedInUser, loggedInUserAccount, managedAccounts = [], accountManagers = [], bookmarkedAccounts = [], pcmConfig = [], viewAsCustomer, loggedInUserToken) {
|
|
14
14
|
const canManageTopContent = loggedInUser.isInternal &&
|
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.37",
|
|
4
4
|
"description": "For managing user permissions ",
|
|
5
5
|
"author": "Karan Garg <kgarg@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@casl/react": "^3.1.0",
|
|
48
48
|
"@cee-eng/hydrajs": "4.18.95",
|
|
49
49
|
"@rh-support/types": "2.0.5",
|
|
50
|
-
"@rh-support/utils": "2.5.
|
|
50
|
+
"@rh-support/utils": "2.5.32",
|
|
51
51
|
"lodash": "^4.17.21"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"defaults and supports es6-module",
|
|
67
67
|
"maintained node versions"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "b39c95572f61f68eaf74796387784012f9d6623a"
|
|
70
70
|
}
|