Skip to content

Commit

Permalink
pundit - disable verify_authorized by default
Browse files Browse the repository at this point in the history
too strict during the *build* phase
  • Loading branch information
yshmarov committed Nov 3, 2024
1 parent a193c82 commit a58ebb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/organizations/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Organizations::BaseController < ApplicationController
# before_action :authorize_membership!
before_action :set_current_membership
# ensure Pundit "authorize" is called for every controller action
after_action :verify_authorized
# after_action :verify_authorized

# def authorize_membership!
# redirect_to root_path, alert: "You are not authorized to perform this action." unless @organization.users.include?(current_user)
Expand Down

0 comments on commit a58ebb3

Please sign in to comment.