summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md4
-rw-r--r--client/components/boards/boardsList.js1
-rw-r--r--client/components/main/header.js2
-rw-r--r--client/components/users/userHeader.js10
4 files changed, 12 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 10f4a0b4..679c0b66 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@ This release adds the following new features:
* [Performance optimization: Move more global subscriptions to template subscription](https://github.com/wekan/wekan/pull/1373);
* Update tranlations. Add Latvian language.
+and fixes the following bugs:
+
+* [Bug on not being able to see Admin Panel if not having access to Board List](https://github.com/wekan/wekan/pull/1371).
+
Thanks to GitHub users mfshiu and thuanpq for their contributions. Thanks to translators for their translations.
# v0.60 2017-11-29 Wekan release
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index 6c9600a1..cc4e2f87 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -5,7 +5,6 @@ BlazeComponent.extendComponent({
// Here is the only place that boards data needed, all boards data will stop sync when leaving this template.
Meteor.subscribe('boards');
Meteor.subscribe('setting');
- Meteor.subscribe('user-admin');
},
boards() {
diff --git a/client/components/main/header.js b/client/components/main/header.js
index b005775a..3155b3d9 100644
--- a/client/components/main/header.js
+++ b/client/components/main/header.js
@@ -1,3 +1,5 @@
+Meteor.subscribe('user-admin');
+
Template.header.helpers({
wrappedHeader() {
return !Session.get('currentBoard');
diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js
index 481b13c3..f8a1c8b7 100644
--- a/client/components/users/userHeader.js
+++ b/client/components/users/userHeader.js
@@ -35,10 +35,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) {