[openstreetmap/openstreetmap-website] Use a state machine for user status (PR #3419)
Tom Hughes
notifications at github.com
Thu Jan 13 10:04:01 UTC 2022
> > I do use it as a first step to move a user from suspended to active though, because that isn't currently possible to do directly, and still isn't with this, but now there is no workaround either.
>
> If we need another transition then I'm happy to add one. The `confirm` transition already allows going from `:suspended` to `:confirmed`. So do you also want an `unsuspend (:from => [:suspended], :to => :active)` ?
I think we definitely need that, yes. The only question is whether we also need to be able to go from confirmed to active - it's certainly wouldn't be a common thing to do most likely only something you'd use to reverse an accidental confirmation.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3419#issuecomment-1011980531
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3419/c1011980531 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220113/5f6245c1/attachment.htm>
More information about the rails-dev
mailing list