app/controllers/context_steps_controller.rb
# Creates a list of sites available for that user
Creates a list of sites available for that user
Creates a list of sites available for that user
def permitted_sites
    @permitted_sites =
      if @current_user.admin
        Site.all
      else
        @current_user.owned_sites
      end
  end
def permitted_sites @permitted_sites = if @current_user . admin Site . all else @current_user . owned_sites end end
Creates a list of sites available for that user
Creates a list of sites available for that user