fix: Fixed socket.io guest authorization + rights

This commit is contained in:
NGPixel committed 2017-04-29 17:42:33 -04:00
1 parent 5c9fe14723
commit ed0253cd0d
6 files changed
+14 -10

No files matched your search

-1
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')
})
})