From 6aedcd33daf9f5f30e17b780eae547f94ce6bbd5 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 3 Nov 2017 21:45:08 +0800 Subject: [PATCH] Add note --- plugin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin.rb b/plugin.rb index b492c6e9..46f4f2fa 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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)