mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Fix: dont require admin to view trash on frontend (#7028)
This commit is contained in:
parent
f73be01897
commit
a066ccff4f
1 changed files with 4 additions and 1 deletions
|
|
@ -150,7 +150,10 @@ export const routes: Routes = [
|
|||
component: TrashComponent,
|
||||
canActivate: [PermissionsGuard],
|
||||
data: {
|
||||
requireAdmin: true,
|
||||
requiredPermission: {
|
||||
action: PermissionAction.Delete,
|
||||
type: PermissionType.Document,
|
||||
},
|
||||
},
|
||||
},
|
||||
// redirect old paths
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue