feat: Add SUPER_ADMIN role with dedicated admin user management and updated access controls for existing admin features.
This commit is contained in:
@@ -85,7 +85,7 @@ export class MessagesGateway implements OnGatewayConnection, OnGatewayDisconnect
|
||||
this.logger.log(`Client connected successfully: ${client.id} (User: ${userId}, Role: ${payload.role})`);
|
||||
|
||||
// Auto-join admin users to admin_room for support chat notifications
|
||||
if (payload.role === 'ADMIN') {
|
||||
if (payload.role === 'ADMIN' || payload.role === 'SUPER_ADMIN') {
|
||||
client.join('admin_room');
|
||||
this.logger.log(`Admin ${userId} joined admin_room`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user