fix categories.loadMore so it checks read permission

v1.18.x
barisusakli 11 years ago
parent 100328ef06
commit f55d1897c8

@ -44,6 +44,10 @@ SocketCategories.loadMore = function(socket, data, callback) {
return callback(err);
}
if (!results.privileges.read) {
return callback(new Error('[[error:no-privileges]]'));
}
var start = parseInt(data.after, 10),
end = start + results.settings.topicsPerPage - 1;

Loading…
Cancel
Save