@alfresco/adf-content-services 9.1.0-16411309588 → 9.1.0-16418062135

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.
@@ -350,7 +350,7 @@ class ContentService {
350
350
  */
351
351
  hasPermissions(node, permission, userId) {
352
352
  let hasPermissions = false;
353
- userId = userId ?? this.authService.getEcmUsername();
353
+ userId = userId ?? this.authService.getUsername();
354
354
  const permissions = [...(node.permissions?.locallySet || []), ...(node.permissions?.inherited || [])].filter((currentPermission) => currentPermission.authorityId === userId);
355
355
  if (permissions.length) {
356
356
  if (permission?.startsWith('!')) {
@@ -3673,7 +3673,7 @@ class LockService {
3673
3673
  isLocked = !this.isLockExpired(node);
3674
3674
  }
3675
3675
  else if (this.isLockOwnerAllowed(node)) {
3676
- isLocked = this.authService.getEcmUsername() !== node.properties['cm:lockOwner'].id;
3676
+ isLocked = this.authService.getUsername() !== node.properties['cm:lockOwner'].id;
3677
3677
  if (this.isLockExpired(node)) {
3678
3678
  isLocked = false;
3679
3679
  }
@@ -10553,7 +10553,7 @@ class DropdownSitesComponent {
10553
10553
  return this.siteList?.list.pagination?.hasMoreItems;
10554
10554
  }
10555
10555
  filteredResultsByMember(sites) {
10556
- const loggedUserName = this.authService.getEcmUsername();
10556
+ const loggedUserName = this.authService.getUsername();
10557
10557
  sites.list.entries = sites.list.entries.filter((site) => this.isCurrentUserMember(site, loggedUserName));
10558
10558
  return sites;
10559
10559
  }