Skip to content

Commit

Permalink
#000 - fixed bug for user with all privileges and sync stopping in be…
Browse files Browse the repository at this point in the history
…tween
  • Loading branch information
petmongrels committed Oct 23, 2023
1 parent 758aa0b commit c8a475a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ class EntitySyncStatusService extends BaseService {

removeRevokedPrivileges(entityMetaDataModel, syncDetails) {
const hasAllPrivileges = this.getService(PrivilegeService).hasAllPrivileges();
if (hasAllPrivileges) return;
if (hasAllPrivileges) return [...syncDetails];

const privilegeEntities = entityMetaDataModel.filter(entity => entity.privilegeParam);
const syncDetailsWithPrivilege = [...syncDetails];
privilegeEntities.forEach(entity => {
Expand Down

0 comments on commit c8a475a

Please sign in to comment.