mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							428 B
						
					
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							428 B
						
					
					
				| # frozen_string_literal: true
 | |
| 
 | |
| class SsoSettingsController < ApplicationController
 | |
|   before_action :load_encrypted_config
 | |
|   authorize_resource :encrypted_config, only: :index
 | |
|   authorize_resource :encrypted_config, parent: false, except: :index
 | |
| 
 | |
|   def index; end
 | |
| 
 | |
|   private
 | |
| 
 | |
|   def load_encrypted_config
 | |
|     @encrypted_config =
 | |
|       EncryptedConfig.find_or_initialize_by(account: current_account, key: 'saml_configs')
 | |
|   end
 | |
| end
 |