From b93f40a154928283d41ceeb8908f32e5dc5ce0b1 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Sun, 19 Apr 2015 00:02:16 +0300 Subject: [PATCH] #465: Fixed: Pundit::AuthorizationNotPerformedError --- app/controllers/users/users_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/users/users_controller.rb b/app/controllers/users/users_controller.rb index 0ef9a9fb9..88047132a 100644 --- a/app/controllers/users/users_controller.rb +++ b/app/controllers/users/users_controller.rb @@ -1,5 +1,6 @@ class Users::UsersController < Users::BaseController skip_before_action :authenticate_user!, only: [:allowed, :check, :discover] + skip_after_action :verify_authorized before_action :find_user_by_key, only: [:allowed, :discover] def allowed