mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
- Fix: Bug: Not logged in public board page has calendar.
Thanks to xet7 ! Closes #2061
This commit is contained in:
parent
8919d8fb7d
commit
978dafc62b
2 changed files with 11 additions and 5 deletions
|
@ -29,7 +29,8 @@ template(name="boardBody")
|
|||
+calendarView
|
||||
|
||||
template(name="calendarView")
|
||||
.calendar-view.swimlane
|
||||
if currentCard
|
||||
+cardDetails(currentCard)
|
||||
+fullcalendar(calendarOptions)
|
||||
if isViewCalendar
|
||||
.calendar-view.swimlane
|
||||
if currentCard
|
||||
+cardDetails(currentCard)
|
||||
+fullcalendar(calendarOptions)
|
||||
|
|
|
@ -134,7 +134,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
isViewCalendar() {
|
||||
const currentUser = Meteor.user();
|
||||
if (!currentUser) return true;
|
||||
if (!currentUser) return false;
|
||||
return (currentUser.profile.boardView === 'board-view-cal');
|
||||
},
|
||||
|
||||
|
@ -264,4 +264,9 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
};
|
||||
},
|
||||
isViewCalendar() {
|
||||
const currentUser = Meteor.user();
|
||||
if (!currentUser) return false;
|
||||
return (currentUser.profile.boardView === 'board-view-cal');
|
||||
},
|
||||
}).register('calendarView');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue