mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Handle user saved and no longer has permissions
This commit is contained in:
		| @@ -474,12 +474,17 @@ export class DocumentDetailComponent | ||||
|         }, | ||||
|         error: (error) => { | ||||
|           this.networkActive = false | ||||
|           this.error = error.error | ||||
|           this.toastService.showError( | ||||
|             $localize`Error saving document` + | ||||
|               ': ' + | ||||
|               (error.message ?? error.toString()) | ||||
|           ) | ||||
|           if (!this.userCanEdit) { | ||||
|             this.toastService.showInfo($localize`Document saved successfully.`) | ||||
|             this.close() | ||||
|           } else { | ||||
|             this.error = error.error | ||||
|             this.toastService.showError( | ||||
|               $localize`Error saving document` + | ||||
|                 ': ' + | ||||
|                 (error.message ?? error.toString()) | ||||
|             ) | ||||
|           } | ||||
|         }, | ||||
|       }) | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon