]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Remove unnecessary check
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 21 Mar 2025 17:28:20 +0000 (10:28 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Fri, 21 Mar 2025 17:28:20 +0000 (10:28 -0700)
src-ui/src/app/components/document-detail/document-detail.component.ts

index ba3b76bc3dfb39e80611653b24c38e8014fb9abe..00e34fe936e175bd19dc9e9620f6f7e9e6b529f2 100644 (file)
@@ -825,10 +825,6 @@ export class DocumentDetailComponent
         error: (error) => {
           this.networkActive = false
           const canEdit =
-            this.permissionsService.currentUserCan(
-              PermissionAction.Change,
-              PermissionType.Document
-            ) &&
             this.permissionsService.currentUserHasObjectPermissions(
               PermissionAction.Change,
               this.document