Remove duplicate cache header setting before action (#33833)
This commit is contained in:
		
					parent
					
						
							
								8dce5138dd
							
						
					
				
			
			
				commit
				
					
						c3419d146a
					
				
			
		
					 12 changed files with 0 additions and 62 deletions
				
			
		|  | @ -4,14 +4,9 @@ class Settings::BaseController < ApplicationController | |||
|   layout 'admin' | ||||
| 
 | ||||
|   before_action :authenticate_user! | ||||
|   before_action :set_cache_headers | ||||
| 
 | ||||
|   private | ||||
| 
 | ||||
|   def set_cache_headers | ||||
|     response.cache_control.replace(private: true, no_store: true) | ||||
|   end | ||||
| 
 | ||||
|   def require_not_suspended! | ||||
|     forbidden if current_account.unavailable? | ||||
|   end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue