Skip to content

Commit

Permalink
Restored definition of helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jfederico committed Aug 15, 2017
1 parent f66f3d4 commit 20830c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/landing_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -77,6 +75,7 @@ def session_status_refresh
def admin?
@user && @user == current_user
end
helper_method :admin?

def preferences
@user = current_user
Expand Down

0 comments on commit 20830c0

Please sign in to comment.