[openstreetmap/openstreetmap-website] Use a state machine for user status (PR #3419)
Tom Hughes
notifications at github.com
Thu Jan 13 08:13:12 UTC 2022
@tomhughes commented on this pull request.
> + # Mark the account as deleted but keep all data intact
+ event :hide do
+ transitions :from => [:pending, :active, :confirmed, :suspended], :to => :deleted
+ end
+
+ event :unhide do
+ transitions :from => [:deleted], :to => :active
+ end
It's used for spam accounts, to close them without removing the evidence.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3419#discussion_r783720756
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3419/review/851374355 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220113/3f61d3cb/attachment-0001.htm>
More information about the rails-dev
mailing list