mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
parent
6fe08cd4b3
commit
82431349ff
1 changed files with 3 additions and 2 deletions
|
|
@ -3,9 +3,10 @@
|
||||||
// 1. that the user is a member of
|
// 1. that the user is a member of
|
||||||
// 2. the user has starred
|
// 2. the user has starred
|
||||||
Meteor.publish('boards', function() {
|
Meteor.publish('boards', function() {
|
||||||
// Ensure that the user is connected
|
// Ensure that the user is connected. If it is not, we need to return an empty
|
||||||
|
// array to tell the client to remove the previously published docs.
|
||||||
if (! Match.test(this.userId, String))
|
if (! Match.test(this.userId, String))
|
||||||
return;
|
return [];
|
||||||
|
|
||||||
// Defensive programming to verify that starredBoards has the expected
|
// Defensive programming to verify that starredBoards has the expected
|
||||||
// format -- since the field is in the `profile` a user can modify it.
|
// format -- since the field is in the `profile` a user can modify it.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue