@bigbinary/neeto-playwright-commons 1.24.7 → 1.24.8
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/index.cjs.js +3 -1
- package/index.cjs.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -118458,7 +118458,9 @@ class RolesPage {
|
|
|
118458
118458
|
const { permissions } = await this.roleApis
|
|
118459
118459
|
.fetch("permissions")
|
|
118460
118460
|
.then(response => response === null || response === void 0 ? void 0 : response.json());
|
|
118461
|
-
const permissionObjects = targetPermissions.flatMap(permission => permissions.filter((p) => isGranularPermission
|
|
118461
|
+
const permissionObjects = targetPermissions.flatMap(permission => permissions.filter((p) => isGranularPermission
|
|
118462
|
+
? p.description === permission
|
|
118463
|
+
: p.category === permission));
|
|
118462
118464
|
return ramda.pluck("id", permissionObjects);
|
|
118463
118465
|
};
|
|
118464
118466
|
this.getRoleIdAndOrganizationId = async (roleName) => {
|