securing settings.save socket listeners behind admin namespace

This commit is contained in:
Julian Lam
2014-03-17 10:48:30 -04:00
parent c1ccc81400
commit 14a0b45ae8
3 changed files with 23 additions and 33 deletions

View File

@@ -245,14 +245,4 @@ SocketModules.sounds.getMapping = function(socket, data, callback) {
meta.sounds.getMapping(callback);
};
/* Settings */
SocketModules.settings.get = function(socket, data, callback) {
meta.settings.get(data.hash, callback);
};
SocketModules.settings.set = function(socket, data, callback) {
console.log('setting', data);
meta.settings.set(data.hash, data.values, callback);
};
module.exports = SocketModules;