summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authormayjs <johannes.may@udo.edu>2017-05-15 19:20:55 +0200
committermayjs <johannes.may@udo.edu>2017-05-15 19:20:55 +0200
commit1bdc28bf9cffa311ba0955760c3a2013f23dce83 (patch)
treee7a28127b2299cb225b24977bbeb4aea45b4e218 /models/boards.js
parent452901d3b1578da35ba6c1caa50a640a9fcfccf7 (diff)
downloadwekan-1bdc28bf9cffa311ba0955760c3a2013f23dce83.tar.gz
wekan-1bdc28bf9cffa311ba0955760c3a2013f23dce83.tar.bz2
wekan-1bdc28bf9cffa311ba0955760c3a2013f23dce83.zip
Fixed a typo and removed an old todo comment
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/boards.js b/models/boards.js
index 5df34215..f2ac794e 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -562,13 +562,13 @@ if (Meteor.isServer) {
const data = Boards.find({
archived: false,
- 'members.userId': req.userId, // TODO: How does the current authentication system work? Can we rely on req.userId to be correct?
+ 'members.userId': req.userId,
}, {
sort: ['title'],
}).map(function(board) {
return {
_id: board._id,
- title: board._title
+ title: board.title
}
});