mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 13:48:49 +01:00
updating teams from oidc possible, fixed undefined error, no need for extra login to assign/create teams/orgs
This commit is contained in:
parent
263b405fc8
commit
f90875d8ef
5 changed files with 143 additions and 61 deletions
|
|
@ -209,7 +209,31 @@ if (Meteor.isServer) {
|
|||
});
|
||||
}
|
||||
},
|
||||
|
||||
setOrgAllFieldsFromOidc(
|
||||
org,
|
||||
orgDisplayName,
|
||||
orgDesc,
|
||||
orgShortName,
|
||||
orgWebsite,
|
||||
orgIsActive,
|
||||
) {
|
||||
check(org, Object);
|
||||
check(orgDisplayName, String);
|
||||
check(orgDesc, String);
|
||||
check(orgShortName, String);
|
||||
check(orgWebsite, String);
|
||||
check(orgIsActive, Boolean);
|
||||
Org.update(org, {
|
||||
$set: {
|
||||
orgDisplayName: orgDisplayName,
|
||||
orgDesc: orgDesc,
|
||||
orgShortName: orgShortName,
|
||||
orgWebsite: orgWebsite,
|
||||
orgIsActive: orgIsActive,
|
||||
},
|
||||
});
|
||||
Meteor.call('setUsersOrgsOrgDisplayName', org._id, orgDisplayName);
|
||||
},
|
||||
setOrgAllFields(
|
||||
org,
|
||||
orgDisplayName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue