Skip to content

[Event] Prevent contract_signed validation from blocking updates by admins #11758

@garyhtou

Description

@garyhtou

Please see https://hackclub.slack.com/archives/C026RKHLPNJ/p1758917526179979

hcb/app/models/event.rb

Lines 907 to 912 in ca3cece

def contract_signed
return if organizer_position_contracts.signed.any? || organizer_position_contracts.none? || !plan.contract_required? || Rails.env.development?
errors.add(:base, "Missing a contract signee, non-demo mode organizations must have a contract signee.")
end

either allow admins to bypass this. or allow admins to bypass this for specific fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions