mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
this has been bugging me for ages, broken "fill your profile link" fixed AND bio updates when you save
This commit is contained in:
@@ -195,7 +195,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
# If we were given a serializer, add the class to the json that comes back
|
||||
if opts[:serializer].present?
|
||||
json[obj.class.name.underscore] = opts[:serializer].new(obj).serializable_hash
|
||||
json[obj.class.name.underscore] = opts[:serializer].new(obj, scope: guardian).serializable_hash
|
||||
end
|
||||
|
||||
render json: MultiJson.dump(json)
|
||||
|
||||
Reference in New Issue
Block a user