We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c08b7 commit f600fd7Copy full SHA for f600fd7
app/controllers/facilitators_controller.rb
@@ -2,7 +2,9 @@ class FacilitatorsController < ApplicationController
2
# Skip login requirement for new facilitator form
3
# temporarily skipping authentication for all actions for development ease
4
#TODO: remove :index & :show from skip_before_action
5
- skip_before_action :authenticate_user!, only: [:index, :show, :update, :edit, :new, :create]
+ if Rails.env.development?
6
+ skip_before_action :authenticate_user!, only: [:index, :show, :update, :edit, :new, :create]
7
+ end
8
9
before_action :set_facilitator, only: %i[ show edit update destroy ]
10
0 commit comments