mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
only logged in users can flag
This commit is contained in:
@@ -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 = '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user