mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Disable suggestions for read-only docs
This commit is contained in:
		| @@ -306,6 +306,12 @@ export class DocumentDetailComponent | ||||
|           ) | ||||
|         }, | ||||
|       }) | ||||
|     if ( | ||||
|       this.permissionsService.currentUserHasObjectPermissions( | ||||
|         PermissionAction.Change, | ||||
|         doc | ||||
|       ) | ||||
|     ) { | ||||
|       this.documentsService | ||||
|         .getSuggestions(doc.id) | ||||
|         .pipe(first()) | ||||
| @@ -320,6 +326,7 @@ export class DocumentDetailComponent | ||||
|             ) | ||||
|           }, | ||||
|         }) | ||||
|     } | ||||
|     this.title = this.documentTitlePipe.transform(doc.title) | ||||
|     const docFormValues = Object.assign({}, doc) | ||||
|     docFormValues['permissions_form'] = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon