Skip to content

Commit

Permalink
feat : enable activate only for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
MAudelGisaia committed Dec 19, 2024
1 parent 59b6681 commit 36cbb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/user/user-form/user-form.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3>{{'Information' | translate}}</h3>
</mat-option>
</mat-select>
</mat-form-field>
<mat-checkbox class="active" formControlName="active">{{'Active' | translate}}</mat-checkbox>
<mat-checkbox *ngIf="isSuperAdmin" class="active" formControlName="active">{{'Active' | translate}}</mat-checkbox>
</div>
<div class="form-actions">
<button mat-flat-button color="accent" [disabled]="!userForm.valid" (click)="submit()" tabindex="-1">
Expand Down

0 comments on commit 36cbb6c

Please sign in to comment.