only logged in users can flag

v1.18.x
Baris Soner Usakli 11 years ago
parent 825c568bc1
commit ca06a24df2

@ -214,6 +214,10 @@ SocketPosts.getPidPage = function(socket, pid, callback) {
} }
SocketPosts.flag = function(socket, pid, callback) { SocketPosts.flag = function(socket, pid, callback) {
if (!socket.uid) {
return callback(new Error('not-logged-in'));
}
var message = '', var message = '',
path = ''; path = '';

Loading…
Cancel
Save