1
0
Fork 0
Dieser Commit ist enthalten in:
Angus McLeod 2017-11-03 21:45:08 +08:00
Ursprung 85c436c59e
Commit 6aedcd33da

Datei anzeigen

@ -110,6 +110,7 @@ after_initialize do
add_to_serializer(:current_user, :redirect_to_wizard) { object.custom_fields['redirect_to_wizard'] }
## TODO limit this to the first admin
SiteSerializer.class_eval do
def include_wizard_required?
scope.is_admin? && Wizard.user_requires_completion?(scope.user)