forked from External/greenlight
		
	Restored definition of helper
This commit is contained in:
		@@ -17,8 +17,6 @@
 | 
				
			|||||||
class LandingController < ApplicationController
 | 
					class LandingController < ApplicationController
 | 
				
			||||||
  include BbbApi
 | 
					  include BbbApi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  helper_method :admin?
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  def index
 | 
					  def index
 | 
				
			||||||
    # If guest access is disabled, redirect the user to the guest landing and force login.
 | 
					    # If guest access is disabled, redirect the user to the guest landing and force login.
 | 
				
			||||||
    redirect_to guest_path if Rails.configuration.disable_guest_access
 | 
					    redirect_to guest_path if Rails.configuration.disable_guest_access
 | 
				
			||||||
@@ -77,6 +75,7 @@ class LandingController < ApplicationController
 | 
				
			|||||||
  def admin?
 | 
					  def admin?
 | 
				
			||||||
    @user && @user == current_user
 | 
					    @user && @user == current_user
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					  helper_method :admin?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def preferences
 | 
					  def preferences
 | 
				
			||||||
    @user = current_user
 | 
					    @user = current_user
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user