Revert "emitting alert when restart is attempted in development mode"

This reverts commit 059c5452ea.
This commit is contained in:
Julian Lam
2014-02-23 22:52:59 -05:00
parent 059c5452ea
commit c797d6251d

View File

@@ -33,15 +33,6 @@ SocketAdmin.before = function(socket, next) {
SocketAdmin.restart = function(socket, data, callback) {
meta.restart();
if (process.env.NODE_ENV === 'development') {
socket.emit('event:alert', {
title: 'Restart Not Available',
message: 'NodeBB restarting is disabled in development mode.',
type: 'warning',
timeout: 2500
});
}
};
/* Topics */