mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	Fix: correct admin permissions check for system status
This commit is contained in:
		
							parent
							
								
									5802163a0e
								
							
						
					
					
						commit
						78af59ec17
					
				@ -1850,7 +1850,7 @@ class SystemStatusView(PassUserMixin):
 | 
			
		||||
    permission_classes = (IsAuthenticated,)
 | 
			
		||||
 | 
			
		||||
    def get(self, request, format=None):
 | 
			
		||||
        if not request.user.has_perm("admin.view_logentry"):
 | 
			
		||||
        if not request.user.is_staff:
 | 
			
		||||
            return HttpResponseForbidden("Insufficient permissions")
 | 
			
		||||
 | 
			
		||||
        current_version = version.__full_version_str__
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user