#465: Fixed: Pundit::AuthorizationNotPerformedError

This commit is contained in:
Vokhmin Alexey V 2015-04-19 00:02:16 +03:00
parent 08db1ad59a
commit b93f40a154
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
class Users::UsersController < Users::BaseController class Users::UsersController < Users::BaseController
skip_before_action :authenticate_user!, only: [:allowed, :check, :discover] skip_before_action :authenticate_user!, only: [:allowed, :check, :discover]
skip_after_action :verify_authorized
before_action :find_user_by_key, only: [:allowed, :discover] before_action :find_user_by_key, only: [:allowed, :discover]
def allowed def allowed