0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

Use requires_completion directly for site serializer

Dieser Commit ist enthalten in:
Angus McLeod 2018-01-11 10:53:28 +08:00
Ursprung 984b71ee34
Commit 8851ea8c71

Datei anzeigen

@ -121,7 +121,7 @@ after_initialize do
attributes :complete_custom_wizard attributes :complete_custom_wizard
def include_wizard_required? def include_wizard_required?
scope.is_admin? && Wizard.user_requires_completion?(scope.user) scope.is_admin? && Wizard.new(scope.user).requires_completion?
end end
def complete_custom_wizard def complete_custom_wizard