Just hide for non-owners

This commit is contained in:
shamoon 2025-11-05 20:44:31 -08:00
parent a5bc2e7632
commit d1cf7b1164
No known key found for this signature in database

View File

@ -66,8 +66,8 @@
<i-bs name="pencil"></i-bs>&nbsp;<ng-container i18n>PDF Editor</ng-container>
</button>
@if (requiresPassword || password) {
<button ngbDropdownItem (click)="removePassword()" [disabled]="!userIsOwner || !password">
@if (userIsOwner && (requiresPassword || password)) {
<button ngbDropdownItem (click)="removePassword()" [disabled]="!password">
<i-bs name="unlock"></i-bs>&nbsp;<ng-container i18n>Remove Password</ng-container>
</button>
}