From 20830c0e72c724b3f20bbb86a6a78dc119fe50bd Mon Sep 17 00:00:00 2001 From: jfederico Date: Tue, 15 Aug 2017 19:44:53 +0000 Subject: [PATCH] Restored definition of helper --- app/controllers/landing_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/landing_controller.rb b/app/controllers/landing_controller.rb index 1fec0a5a..a6f6aa37 100644 --- a/app/controllers/landing_controller.rb +++ b/app/controllers/landing_controller.rb @@ -17,8 +17,6 @@ class LandingController < ApplicationController include BbbApi - helper_method :admin? - def index # 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 @@ -77,6 +75,7 @@ class LandingController < ApplicationController def admin? @user && @user == current_user end + helper_method :admin? def preferences @user = current_user