Skip to content

Commit

Permalink
added restrictions to more buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
pgiertych committed Mar 28, 2024
1 parent 1281a00 commit dfdc16b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,12 @@ <h3><em style="color: #337ab7;">{{ translateState(appInstanceStatus?.state) }}</
</a>
</li>
<li *ngIf="!appInstance.autoUpgradesEnabled">
<a role="button" (click)="this.enableAutoUpgradesModal.show()">
<a *roles="['ROLE_DOMAIN_ADMIN', 'ROLE_SYSTEM_ADMIN']"
role="button" (click)="this.enableAutoUpgradesModal.show()">
{{'APP_INSTANCE.ENABLE_AUTO_UPGRADES_BUTTON' | translate}}
</a>
</li>
<li *ngIf="appInstance.upgradePossible" >
<li *ngIf="appInstance.upgradePossible">
<a *roles="['ROLE_DOMAIN_ADMIN', 'ROLE_SYSTEM_ADMIN']"
role="button" (click)="this.appUpgradeModal.show()">
{{'APP_INSTANCE.UPGRADE_BUTTON' | translate}}
Expand All @@ -156,7 +157,8 @@ <h3><em style="color: #337ab7;">{{ translateState(appInstanceStatus?.state) }}</
</a>
</li>
<li *ngIf="appInstance.autoUpgradesEnabled">
<a role="button" (click)="this.disableAutoUpgradesModal.show()">
<a *roles="['ROLE_DOMAIN_ADMIN', 'ROLE_SYSTEM_ADMIN']"
role="button" (click)="this.disableAutoUpgradesModal.show()">
{{'APP_INSTANCE.DISABLE_AUTO_UPGRADES_BUTTON' | translate}}
</a>
</li>
Expand Down

0 comments on commit dfdc16b

Please sign in to comment.