mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 12:51:13 -05:00
Implement unban functionality
This commit is contained in:
@@ -107,7 +107,12 @@ export function ProfileManager() {
|
||||
|
||||
if (logError) logger.error('Failed to log admin action', { error: getErrorMessage(logError) });
|
||||
|
||||
handleSuccess('Success', `User ${ban ? 'banned' : 'unbanned'} successfully.`);
|
||||
handleSuccess(
|
||||
'Success',
|
||||
ban
|
||||
? 'User banned successfully. They have been signed out and cannot access the application.'
|
||||
: 'User unbanned successfully. They can now access the application normally.'
|
||||
);
|
||||
|
||||
// Refresh profiles
|
||||
fetchProfiles();
|
||||
|
||||
Reference in New Issue
Block a user