mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 17:48:49 +01:00
Fix typos at oidc_server.js .
Thanks to xet7 !
This commit is contained in:
parent
bd5bb2a8a9
commit
cd51ad7508
1 changed files with 3 additions and 3 deletions
|
|
@ -316,13 +316,13 @@ Meteor.methods({
|
|||
|
||||
if (defaultBoardId)
|
||||
{
|
||||
const board = Boards.findOne(defaultBoardId)
|
||||
const user = Users.findOne({ 'services.oidc.id': oidcUserId })
|
||||
const board = Boards.findOne(defaultBoardId);
|
||||
const user = Users.findOne({ 'services.oidc.id': oidcUserId });
|
||||
const memberIndex = _.pluck(board.members, 'userId').indexOf(user._id);
|
||||
|
||||
if(board && memberIndex < 0)
|
||||
{
|
||||
board.addMember(user._id)
|
||||
board.addMember(user._id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue