Skip to content

Commit

Permalink
#768: enhance role documentation readability
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Feb 23, 2023
1 parent d39f9de commit b8c3260
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/metadataTypes/Role.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,14 @@ class Role extends MetadataType {
// Reached end: write permission into this.allPermissions
if (element.Operation) {
const permSplit = _permission.split(' > ');
const basePermission = permSplit.shift();
const permissionName = permSplit.join(' > ');
const permOperation = permSplit.pop();
let basePermission = permSplit.shift();
if (basePermission === 'Interactive Marketing Hub') {
basePermission = 'Salesforce Marketing Cloud';
}
const permissionName = `<nobr><b>${permSplit.join(
' > '
)}</b> > ${permOperation}</nobr>`;
if (!this.allPermissions[basePermission]) {
this.allPermissions[basePermission] = {};
}
Expand Down

0 comments on commit b8c3260

Please sign in to comment.