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

@ -156,6 +156,7 @@ BlazeComponent.extendComponent({
if (FlowRouter.getRouteName() === 'home'){
query.$and[2].$or.push({'members.userId': Meteor.userId()});
if(allowPrivateVisibilityOnly !== undefined && allowPrivateVisibilityOnly.booleanValue){
query.$and.push({'permission': 'private'});
}