0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00
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'] } 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 SiteSerializer.class_eval do
def include_wizard_required? def include_wizard_required?
scope.is_admin? && Wizard.user_requires_completion?(scope.user) scope.is_admin? && Wizard.user_requires_completion?(scope.user)