mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
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
This commit is contained in:
parent
6705007595
commit
a97360dcfb
1 changed files with 17 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue