mirror of
https://github.com/wekan/wekan.git
synced 2026-01-23 09:46:09 +01:00
[After update wekan to 5.57] Edit profil and change pswd menus are not displayed when SSO authentication is used
This commit is contained in:
parent
5b9a2a8bac
commit
55296b676b
3 changed files with 84 additions and 46 deletions
|
|
@ -86,58 +86,42 @@ BlazeComponent.extendComponent({
|
|||
});
|
||||
},
|
||||
userHasTeams(){
|
||||
if(Meteor.user().teams)
|
||||
{
|
||||
if(Meteor.user().teams && Meteor.user().teams.length > 0)
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
else
|
||||
return false;
|
||||
}
|
||||
},
|
||||
teamsDatas() {
|
||||
if(Meteor.user().teams)
|
||||
{
|
||||
return Meteor.user().teams;
|
||||
}
|
||||
else{
|
||||
else
|
||||
return [];
|
||||
}
|
||||
},
|
||||
userHasOrgs(){
|
||||
if(Meteor.user().orgs)
|
||||
{
|
||||
if(Meteor.user().orgs && Meteor.user().orgs.length > 0)
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
else
|
||||
return false;
|
||||
}
|
||||
},
|
||||
orgsDatas() {
|
||||
if(Meteor.user().orgs)
|
||||
{
|
||||
return Meteor.user().orgs;
|
||||
}
|
||||
else{
|
||||
else
|
||||
return [];
|
||||
}
|
||||
},
|
||||
userHasOrgsOrTeams(){
|
||||
let boolUserHasOrgs;
|
||||
if(Meteor.user().orgs)
|
||||
{
|
||||
if(Meteor.user().orgs && Meteor.user().orgs.length > 0)
|
||||
boolUserHasOrgs = true;
|
||||
}
|
||||
else{
|
||||
else
|
||||
boolUserHasOrgs = false;
|
||||
}
|
||||
|
||||
let boolUserHasTeams;
|
||||
if(Meteor.user().teams)
|
||||
{
|
||||
if(Meteor.user().teams && Meteor.user().teams.length > 0)
|
||||
boolUserHasTeams = true;
|
||||
}
|
||||
else{
|
||||
else
|
||||
boolUserHasTeams = false;
|
||||
}
|
||||
|
||||
return (boolUserHasOrgs || boolUserHasTeams);
|
||||
},
|
||||
boards() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue