mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Note creation / deletion should respect doc permissions
- Disable add note button on frontend - Explicitly disable add / delete via api
This commit is contained in:
@@ -26,6 +26,9 @@ export class DocumentNotesComponent extends ComponentWithPermissions {
|
||||
@Input()
|
||||
notes: PaperlessDocumentNote[] = []
|
||||
|
||||
@Input()
|
||||
addDisabled: boolean = false
|
||||
|
||||
@Output()
|
||||
updated: EventEmitter<PaperlessDocumentNote[]> = new EventEmitter()
|
||||
users: PaperlessUser[]
|
||||
@@ -61,7 +64,9 @@ export class DocumentNotesComponent extends ComponentWithPermissions {
|
||||
error: (e) => {
|
||||
this.networkActive = false
|
||||
this.toastService.showError(
|
||||
$localize`Error saving note: ${e.toString()}`
|
||||
$localize`Error saving note`,
|
||||
10000,
|
||||
JSON.stringify(e)
|
||||
)
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user