@seniorsistemas/yms-integration 1.11.0 → 1.11.2

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