diff --git a/app/controllers/readings_controller.rb b/app/controllers/readings_controller.rb index 3a761a9..b2550ce 100644 --- a/app/controllers/readings_controller.rb +++ b/app/controllers/readings_controller.rb @@ -1,9 +1,9 @@ include OwnershipAuthentication class ReadingsController < ApplicationController - before_action :authenticate_user!, except: [:show, :index] - before_action :set_reading, only: [:show, :edit, :update, :destroy] - before_action :reading_owner?, except: [:show] + before_action :authenticate_user!, except: [:index] + before_action :set_reading, only: [:edit, :update, :destroy] + before_action :reading_owner?, except: [:new] def new @reading_group_id = params[:reading_group_id] -- libgit2 0.21.2