File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM node:12.22.0
22
3- LABEL version="2.9.1 "
3+ LABEL version="2.9.2 "
44
55WORKDIR /usr/local/src
66RUN mkdir xapi_stmt_gen
Original file line number Diff line number Diff line change @@ -3723,7 +3723,7 @@ module.exports = async function main() { // eslint-disable-line max-statements
37233723 // if authenticated using GakuNinLMS's LTI plugin
37243724 const username = (
37253725 ( user . auth === 'lti' && config . LRS . ePPNScoped )
3726- ? user . alternatename
3726+ ? user . alternatename // Can be null and not unique
37273727 : user . username
37283728 ) ;
37293729 const eppn = eppns . find ( ( eppn ) => {
@@ -3742,7 +3742,8 @@ module.exports = async function main() { // eslint-disable-line max-statements
37423742 scope : scope , // nullable
37433743 acl : scope ? scope . replace ( / [ . - ] / g, '_' ) : null // used for RLS
37443744 } ;
3745- if ( scope ) {
3745+ // Exclude duplicates
3746+ if ( scope && ! newEppns . find ( e => e . username === username ) ) {
37463747 newEppns . push ( userAttrs [ user . id ] ) ;
37473748 }
37483749 }
You can’t perform that action at this time.
0 commit comments