Skip to content
Snippets Groups Projects
Commit 12b9430d authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Fixed user pagination error

parent 8df4a2cb
No related branches found
No related tags found
No related merge requests found
...@@ -209,7 +209,7 @@ class V1::UsersController < ApplicationController ...@@ -209,7 +209,7 @@ class V1::UsersController < ApplicationController
end end
def set_user def set_user
users = paginate policy_scope(User) users = policy_scope(User)
@user = users.where(id: params[:id]).first @user = users.where(id: params[:id]).first
render status: :not_found if @user.blank? render status: :not_found if @user.blank?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment