- Issue created by @jonathanshaw
- πΊπΈUnited States john.oltman
Looking at this again, once status is disabled, access checks will remove access to the register form. So I think we are mostly talking about tests, or the small window when someone reaches a form and status is disabled after the form is loaded and before submit, they would receive two messages on submit (or maybe a 403, which makes this moot). For other things besides the register form, like change host - the host would be marked as Disabled and as Closed - doesn't seem terrible, and you can prioritize one violation over the other by checking the host entity beforeOpen and afterClose methods, similar to what the RegistrationStatus block does (it only shows disabled as a last resort). So I am leaning towards removing the extra logic around open and closed in the HostIsEnabled validator, thus making the status check independent like the other checks. I'll move ahead if you agree. Basically, I've come around to your way of thinking - keep it simple, leave the complicated logic up to the callers.
- π¬π§United Kingdom jonathanshaw Stroud, UK
Agreed. The risk/benefit ratio is poor, and its simpler without. Continuing to checking closed before enabled so that message comes first does seem like a good idea though.
- Merge request !108#3497732: Simplify the status validation check β (Merged) created by john.oltman
-
john.oltman β
authored 4f7eaa56 on 3.3.x
#3497732: Simplify the status validation check
-
john.oltman β
authored 4f7eaa56 on 3.3.x
Automatically closed - issue fixed for 2 weeks with no activity.