Edit profil and change password menus are not displayed when SSO authentication is used

This commit is contained in:
Emile NDAGIJIMANA 2021-09-01 11:40:54 +02:00
parent 6d9d69e01d
commit c7cc9273a6
5 changed files with 21 additions and 8 deletions

View file

@ -22,6 +22,14 @@ Template.memberMenuPopup.helpers({
return false;
}
},
isNotOAuth2AuthenticationMethod(){
currentUser = Meteor.user();
if (currentUser) {
return currentUser.authenticationMethod != 'OAuth2';
} else {
return true;
}
}
});
Template.memberMenuPopup.events({