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

Ensure admin can access wizard multiple times

Dieser Commit ist enthalten in:
Angus McLeod 2023-02-09 13:10:55 +01:00
Ursprung 7c8f530c86
Commit b2b93aad59

Datei anzeigen

@ -242,7 +242,7 @@ class CustomWizard::Wizard
end end
def can_access? def can_access?
permitted? && (multiple_submissions || !completed?) permitted? && (user&.admin? || (multiple_submissions || !completed?))
end end
def reset def reset