diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-09-05 23:14:45 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-09-05 23:33:44 +0200 |
commit | 216de59aba805c2eacf1d6742f05ea7e9199f3b9 (patch) | |
tree | 1cfc72765a7a17aabba65de0b0a766bbc15dbc14 /collections | |
parent | 559de5602c908858fab5301f610e3528eb146546 (diff) | |
download | wekan-216de59aba805c2eacf1d6742f05ea7e9199f3b9.tar.gz wekan-216de59aba805c2eacf1d6742f05ea7e9199f3b9.tar.bz2 wekan-216de59aba805c2eacf1d6742f05ea7e9199f3b9.zip |
Support avatars and improve permissions integration on sandstorm
We now update the internal state of the application every time a user
connects to the application, which means that if the sandstorm sharing
graph has changed since the last time we saw a user, his permissions
will be updated accordingly.
Diffstat (limited to 'collections')
-rw-r--r-- | collections/boards.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collections/boards.js b/collections/boards.js index ddfa5016..fcd04153 100644 --- a/collections/boards.js +++ b/collections/boards.js @@ -156,7 +156,7 @@ Boards.before.insert((userId, doc) => { doc.slug = doc.slug || getSlug(doc.title) || 'board'; doc.createdAt = new Date(); doc.archived = false; - doc.members = [{ + doc.members = doc.members || [{ userId, isAdmin: true, isActive: true, |