diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-08-26 23:24:13 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-08-26 23:24:13 +0300 |
commit | a97360dcfba2bf1dd1be115dd91dd1dde49ded69 (patch) | |
tree | 07ff29ebaa02ff7114761a34e613061ac9a13ce6 /client | |
parent | 670500759531c3de7f819b0fe434e1a412bfd3f5 (diff) | |
download | wekan-a97360dcfba2bf1dd1be115dd91dd1dde49ded69.tar.gz wekan-a97360dcfba2bf1dd1be115dd91dd1dde49ded69.tar.bz2 wekan-a97360dcfba2bf1dd1be115dd91dd1dde49ded69.zip |
Try to fix lint, and make board loading fix Sandstorm-only where
user permissions work differently.
Thanks to xet7 !
Related https://github.com/wekan/wekan/pull/2654
Diffstat (limited to 'client')
-rw-r--r-- | client/components/lists/listBody.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index a1a4c11a..c8e41a0b 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -701,8 +701,23 @@ BlazeComponent.extendComponent({ this.listId = this.parentComponent().data()._id; this.swimlaneId = ''; - let user = Meteor.user(); - if (user) { + const isSandstorm = + Meteor.settings && + Meteor.settings.public && + Meteor.settings.public.sandstorm; + + if (isSandstorm) { + const user = Meteor.user(); + if (user) { + const boardView = (Meteor.user().profile || {}).boardView; + if (boardView === 'board-view-swimlanes') { + this.swimlaneId = this.parentComponent() + .parentComponent() + .parentComponent() + .data()._id; + } + } + } else { const boardView = (Meteor.user().profile || {}).boardView; if (boardView === 'board-view-swimlanes') { this.swimlaneId = this.parentComponent() |