Scope user finding by Current.account

This commit is contained in:
Jeffrey Hardy
2024-10-04 12:51:04 -04:00
parent 9e28359587
commit 6953701df4
+1 -1
View File
@@ -15,7 +15,7 @@ class Users::AvatarsController < ApplicationController
private
def set_user
@user = User.find(params[:user_id])
@user = Current.account.users.find(params[:user_id])
end
def render_initials