TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
63 stars 29 forks source link

Banned until #1870

Closed adelikat closed 1 month ago

adelikat commented 1 month ago

Resolves the immediate problem in #1701 The full rollout will require more iterations, this PR adds a "Banned Until" datetime on user. If set, the user cannot log in and effectively has no permissions, so long as the current time is before the ban.

If a user is banned this way, their role on the forum will display as "Banned User"

Important note that this ties banning to the EditUser permisisons where before it was the AssignUser (due to needing to remove a Login permission).

In future commits and migrations, we will deprecate the Login permission, and remove the Banned User role

Examples of how it would display on the User profile (no Spikes were harmed in the making of these images, was purely from test data): image

image