diff options
author | Thuan Pham Quoc <thuanpq.io@gmail.com> | 2017-12-01 15:04:35 +0700 |
---|---|---|
committer | Thuan Pham Quoc <thuanpq.io@gmail.com> | 2017-12-01 15:04:35 +0700 |
commit | 6d9d18367460141b00f4e8e706e6294e0ba35675 (patch) | |
tree | 585a69517788b7be39f4ec0e8e7c84f7bbe644ff | |
parent | 54036fd7a3ac9bf25b6c601890491af66571d5ff (diff) | |
download | wekan-6d9d18367460141b00f4e8e706e6294e0ba35675.tar.gz wekan-6d9d18367460141b00f4e8e706e6294e0ba35675.tar.bz2 wekan-6d9d18367460141b00f4e8e706e6294e0ba35675.zip |
Fixed - bug on not able to see ADMIN PANEL if not access Board List
-rw-r--r-- | client/components/users/userHeader.js | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index 481b13c3..dbdee6a0 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -3,6 +3,12 @@ Template.headerUserBar.events({ 'click .js-change-avatar': Popup.open('changeAvatar'), }); +BlazeComponent.extendComponent({ + onCreated() { + Meteor.subscribe('user-admin'); + }, +}).register('memberMenuPopup'); + Template.memberMenuPopup.events({ 'click .js-edit-profile': Popup.open('editProfile'), 'click .js-change-settings': Popup.open('changeSettings'), @@ -35,10 +41,12 @@ Template.editProfilePopup.events({ const email = tpl.find('.js-profile-email').value.trim(); let isChangeUserName = false; let isChangeEmail = false; - Users.update(Meteor.userId(), {$set: { - 'profile.fullname': fullname, - 'profile.initials': initials, - }}); + Users.update(Meteor.userId(), { + $set: { + 'profile.fullname': fullname, + 'profile.initials': initials, + } + }); isChangeUserName = username !== Meteor.user().username; isChangeEmail = email.toLowerCase() !== Meteor.user().emails[0].address.toLowerCase(); if (isChangeUserName && isChangeEmail) { |