Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
Use requires_completion directly for site serializer
Dieser Commit ist enthalten in:
Ursprung
984b71ee34
Commit
8851ea8c71
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren