diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-09-05 01:31:25 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-09-05 01:37:55 +0200 |
commit | 82b322777852b0f7b3f93295a0dbcc0c238bd20d (patch) | |
tree | cb75983a021909ac96f99bdb1448cd2ebee72b48 /collections/boards.js | |
parent | 6a92963e2a79e2819b7492a0389c1c48a9467ba3 (diff) | |
download | wekan-82b322777852b0f7b3f93295a0dbcc0c238bd20d.tar.gz wekan-82b322777852b0f7b3f93295a0dbcc0c238bd20d.tar.bz2 wekan-82b322777852b0f7b3f93295a0dbcc0c238bd20d.zip |
Fix member permission modification
Fixes #280
Diffstat (limited to 'collections/boards.js')
-rw-r--r-- | collections/boards.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/collections/boards.js b/collections/boards.js index 8260fc3d..ddfa5016 100644 --- a/collections/boards.js +++ b/collections/boards.js @@ -123,16 +123,24 @@ Boards.helpers({ isPublic() { return this.permission === 'public'; }, + lists() { return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 }}); }, + activities() { return Activities.find({ boardId: this._id }, { sort: { createdAt: -1 }}); }, + + activeMembers() { + return _.where(this.members, {isActive: true}); + }, + absoluteUrl() { return FlowRouter.path('board', { id: this._id, slug: this.slug }); }, + colorClass() { return `board-color-${this.color}`; }, |