mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
warning msgs in admin
This commit is contained in:
@@ -16,6 +16,14 @@ var RDB = require('./../redis.js'),
|
||||
});
|
||||
});
|
||||
}
|
||||
else {
|
||||
socket.emit('event:alert', {
|
||||
title: 'Warning',
|
||||
message: 'You need to be an administrator to make someone else an administrator!',
|
||||
type: 'warning',
|
||||
timeout: 2000
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user