Refactored ban system

Implemented a Reddit-like account suspension system (similar to subreddit bans). This makes it easier to ban users from the app, and the code has also been cleaned up.

The interface was also revamped.
This commit is contained in:
2021-07-20 22:35:49 +01:00
parent 6cda1fe183
commit cbcc1f025a
10 changed files with 118 additions and 69 deletions

View File

@@ -411,14 +411,13 @@ return [
'title' => ':name\'s profile',
'profile' => 'Profile',
'users' => 'Users',
'account_banned' => 'Account banned',
'account_banned_exp' => 'This user has been banned by the moderators.',
'ban_confirm' => 'Please confirm that you want to ban this user account. You\'ll need to add a reason and expiration date to confirm this. Bans don\'t transfer to connected Minecraft networks (yet).',
'leave_empty' => 'Leave empty for a permanent ban',
'account_banned' => 'Account suspended',
'account_banned_exp' => 'This user has been suspended by the admins.',
'ban_confirm' => 'Please confirm that you want to suspend this account. You\'ll need to add a reason and expiration date to confirm this.',
'duration' => 'Duration',
'p_duration' => 'Punishment duration',
'p_duration' => 'Suspension duration',
'p_duration_exp' => 'e.g. Spamming',
'ban' => 'Ban',
'ban' => 'Suspend',
'terminate_notice' => 'You are about to terminate a staff member',
'terminate_notice_warning' => 'Terminating a staff member will remove their privileges on the team management site and Network.