Skip to content

Commit f600fd7

Browse files
committed
add dev if clause
1 parent 42c08b7 commit f600fd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/facilitators_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ class FacilitatorsController < ApplicationController
22
# Skip login requirement for new facilitator form
33
# temporarily skipping authentication for all actions for development ease
44
#TODO: remove :index & :show from skip_before_action
5-
skip_before_action :authenticate_user!, only: [:index, :show, :update, :edit, :new, :create]
5+
if Rails.env.development?
6+
skip_before_action :authenticate_user!, only: [:index, :show, :update, :edit, :new, :create]
7+
end
68

79
before_action :set_facilitator, only: %i[ show edit update destroy ]
810

0 commit comments

Comments
 (0)