MOBILE-3039 workshop: Hide save button if user can't edit assessment

main
Albert Gasset 2019-05-30 14:44:41 +02:00
parent b7088b6886
commit 5143897570
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<ion-navbar core-back-button>
<ion-title><core-format-text [text]="title"></core-format-text></ion-title>
<ion-buttons end [hidden]="!loaded">
<button *ngIf="assessmentId" ion-button clear (click)="saveAssessment()" [attr.aria-label]="'core.save' | translate">
<button *ngIf="assessmentId && access.assessingallowed" ion-button clear (click)="saveAssessment()" [attr.aria-label]="'core.save' | translate">
{{ 'core.save' | translate }}
</button>
<button *ngIf="canAddFeedback" ion-button clear (click)="saveEvaluation()" [attr.aria-label]="'core.save' | translate">