warning msgs in admin

This commit is contained in:
Baris Soner Usakli
2013-07-05 13:46:18 -04:00
parent e38d1af566
commit f90be52a07

View File

@@ -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
});
}
}); });
}; };