diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-05-09 14:25:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-09 14:25:06 +0300 |
commit | 778cd22e72f1894b85ae741ed3868a0d7a9732f3 (patch) | |
tree | a0b810e68819a917cf2d5d131c409c7861bf1acc /models/swimlanes.js | |
parent | 97ff2bd2fae8d199ba6fd7e3c8ac390a92edfe3c (diff) | |
parent | daf314b0378efac13b5c58adf32ce7348ea29193 (diff) | |
download | wekan-778cd22e72f1894b85ae741ed3868a0d7a9732f3.tar.gz wekan-778cd22e72f1894b85ae741ed3868a0d7a9732f3.tar.bz2 wekan-778cd22e72f1894b85ae741ed3868a0d7a9732f3.zip |
Merge pull request #2396 from justinr1234/wekan-profile-checks
Fix missing profile checks
Diffstat (limited to 'models/swimlanes.js')
-rw-r--r-- | models/swimlanes.js | 6 |
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() { |