Add note
Dieser Commit ist enthalten in:
Ursprung
85c436c59e
Commit
6aedcd33da
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
|
@ -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)
|
||||||
|
|
Laden …
In neuem Issue referenzieren