feat: All Pages - Limit to user access rights

This commit is contained in:
NGPixel
2017-04-29 12:28:59 -04:00
parent 8f3a6ed9f3
commit 864a070163
3 changed files with 23 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ module.exports = (socket) => {
if (socket.request.user.logged_in) {
socket.on('treeFetch', (data, cb) => {
cb = cb || _.noop
entries.getFromTree(data.basePath).then((f) => {
entries.getFromTree(data.basePath, socket.request.user).then((f) => {
return cb(f) || true
})
})