fix: Fixed socket.io guest authorization + rights
This commit is contained in:
1 parent
5c9fe14723
commit
ed0253cd0d
6 files changed
+14
-10
No files matched your search
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user