mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Update oidc_server.js
This commit is contained in:
parent
2a362a2e85
commit
ada770c9e6
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