summaryrefslogtreecommitdiffstats
path: root/models/swimlanes.js
diff options
context:
space:
mode:
authorJustin Reynolds <justinr1234@gmail.com>2019-05-08 16:51:27 -0500
committerJustin Reynolds <justinr1234@gmail.com>2019-05-08 16:54:15 -0500
commitdaf314b0378efac13b5c58adf32ce7348ea29193 (patch)
treea0b810e68819a917cf2d5d131c409c7861bf1acc /models/swimlanes.js
parent97ff2bd2fae8d199ba6fd7e3c8ac390a92edfe3c (diff)
downloadwekan-daf314b0378efac13b5c58adf32ce7348ea29193.tar.gz
wekan-daf314b0378efac13b5c58adf32ce7348ea29193.tar.bz2
wekan-daf314b0378efac13b5c58adf32ce7348ea29193.zip
Fix missing profile checks
Diffstat (limited to 'models/swimlanes.js')
-rw-r--r--models/swimlanes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/swimlanes.js b/models/swimlanes.js
index bd2565af..9a53d116 100644
--- a/models/swimlanes.js
+++ b/models/swimlanes.js
@@ -168,17 +168,17 @@ Swimlanes.helpers({
isListTemplatesSwimlane() {
const user = Users.findOne(Meteor.userId());
- return user.profile.listTemplatesSwimlaneId === this._id;
+ return (user.profile || {}).listTemplatesSwimlaneId === this._id;
},
isCardTemplatesSwimlane() {
const user = Users.findOne(Meteor.userId());
- return user.profile.cardTemplatesSwimlaneId === this._id;
+ return (user.profile || {}).cardTemplatesSwimlaneId === this._id;
},
isBoardTemplatesSwimlane() {
const user = Users.findOne(Meteor.userId());
- return user.profile.boardTemplatesSwimlaneId === this._id;
+ return (user.profile || {}).boardTemplatesSwimlaneId === this._id;
},
remove() {