DEV: Guardian for hiding about stats (#9841)

This commit is contained in:
Mark VanLandingham
2020-05-20 10:26:20 -05:00
committed by GitHub
parent cfff8b1f27
commit bd57ae83f1
5 changed files with 61 additions and 45 deletions

View File

@ -16,7 +16,7 @@ class AboutController < ApplicationController
render :index
end
format.json do
render_serialized(@about, AboutSerializer)
render_json_dump(AboutSerializer.new(@about, scope: guardian))
end
end
end