mirror of
https://github.com/wekan/wekan.git
synced 2026-02-23 00:14:07 +01:00
Fix missing profile checks.
Thanks to justinr1234 !
This commit is contained in:
parent
434ed895ed
commit
64ee60a008
14 changed files with 42 additions and 36 deletions
|
|
@ -10,7 +10,7 @@ Meteor.publish('boards', function() {
|
|||
|
||||
// Defensive programming to verify that starredBoards has the expected
|
||||
// format -- since the field is in the `profile` a user can modify it.
|
||||
const {starredBoards = []} = Users.findOne(this.userId).profile;
|
||||
const {starredBoards = []} = Users.findOne(this.userId).profile || {};
|
||||
check(starredBoards, [String]);
|
||||
|
||||
return Boards.find({
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { FastRender } from 'meteor/staringatlights:fast-render';
|
||||
|
||||
FastRender.onAllRoutes(function() {
|
||||
this.subscribe('boards');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue