fix: Fixed socket.io guest authorization + rights

This commit is contained in:
NGPixel
2017-04-29 17:42:33 -04:00
parent 5c9fe14723
commit ed0253cd0d
6 changed files with 14 additions and 10 deletions

View File

@@ -399,7 +399,6 @@ module.exports = {
getFromTree (basePath, usr) {
return db.Entry.find({ parentPath: basePath }, 'title parentPath isDirectory isEntry').sort({ title: 'asc' }).then(results => {
return _.filter(results, r => {
console.log(r._id, rights.checkRole(r._id, usr.rights, 'read'))
return rights.checkRole('/' + r._id, usr.rights, 'read')
})
})