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):
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](https://github.com/TASVideos/tasvideos/assets/1679846/b94bf008-023e-40cb-8a95-6e91c3b36a89)