| 
					
				 | 
			
			
				@@ -150,6 +150,14 @@ def add_administrate 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /announcement_type: Field::String/, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     "announcement_type: Field::Select.with_options(collection: Announcement::TYPES)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  gsub_file "app/dashboards/user_dashboard.rb", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /email: Field::String/, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    "email: Field::String,\n\t\tpassword: Field::String" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  gsub_file "app/dashboards/user_dashboard.rb", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /FORM_ATTRIBUTES = \[/, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    "FORM_ATTRIBUTES = [\n\t\t:password," 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   gsub_file "app/controllers/admin/application_controller.rb", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /# TODO Add authentication logic here\./, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     "redirect_to '/', alert: 'Not authorized.' unless user_signed_in? && current_user.admin?" 
			 |