From a58ebb31fdfa11b72d4e56500d79036b75dbc5f3 Mon Sep 17 00:00:00 2001 From: Yaro Shm Date: Sun, 3 Nov 2024 19:47:01 +0100 Subject: [PATCH] pundit - disable verify_authorized by default too strict during the *build* phase --- app/controllers/organizations/base_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/organizations/base_controller.rb b/app/controllers/organizations/base_controller.rb index 1e26f72f..1595b6cd 100644 --- a/app/controllers/organizations/base_controller.rb +++ b/app/controllers/organizations/base_controller.rb @@ -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)