mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08: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