mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Merge branch 'master' of github.com:wekan/wekan
This commit is contained in:
commit
a91e274785
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ OAuth.registerService('oidc', 2, null, function (query) {
|
|||
// data needs to be treated differently.
|
||||
// use case: in oidc provider no scope is set, hence no group attributes.
|
||||
// therefore: keep admin privileges for wekan as before
|
||||
if(typeof serviceData.groups[0] === "string" )
|
||||
if(Array.isArray(serviceData.groups) && serviceData.groups.length && typeof serviceData.groups[0] === "string" )
|
||||
{
|
||||
user = Meteor.users.findOne({'_id': serviceData.id});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue