@seniorsistemas/yms-integration 1.11.2 → 1.11.3

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.
@@ -279,16 +279,10 @@
279
279
  }
280
280
  permissions.filter(function (permission) {
281
281
  gate.isActionButton = gate.isActionButton ? true : _this.checkDefaultGatePermission(permission, gate);
282
- if (gate.isActionButton) {
283
- gate.actions.push({ action: permission.action, authorized: permission.authorized });
284
- }
285
- else if (gate.resourceUri === permission.resource) {
282
+ if (gate.resourceUri === permission.resource) {
286
283
  gate.actions.push({ action: permission.action, authorized: permission.authorized });
287
284
  gate.isActionButton = gate.isActionButton ? true : permission.authorized;
288
285
  }
289
- else {
290
- gate.isActionButton = false;
291
- }
292
286
  });
293
287
  gateActions.push(gate);
294
288
  });