only write to your own profile
This commit is contained in:
parent
511a4487de
commit
be26794e4a
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
@user = User.find_by_id params[:id]
|
@user = current_user
|
||||||
prep_image_url(params[:user])
|
prep_image_url(params[:user])
|
||||||
|
|
||||||
@user.update_profile params[:user]
|
@user.update_profile params[:user]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue