Skip to content

Commit 6fee66f

Browse files
use current_user_with_only_is_blocked instance
1 parent d0b58f3 commit 6fee66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/concerns/api_authentication/acts_as_base_controller_with_authentication.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def current_user
9494
end
9595

9696
def current_user_with_only_is_blocked
97-
@current_user ||=
97+
@current_user_with_only_is_blocked ||=
9898
"::#{ ApiAuthentication.configuration.app_user_model_class_name.constantize }".constantize.select(:is_blocked).find current_user_id
9999
end
100100

0 commit comments

Comments
 (0)