mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 11:20:13 +01:00
Fixed - bug on not able to see ADMIN PANEL if not access Board List
This commit is contained in:
parent
54036fd7a3
commit
6d9d183674
1 changed files with 12 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue