File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -497,8 +497,10 @@ app._verifyAuthModelRelations = function() {
497497 function verifyUserRelations ( Model ) {
498498 const hasManyTokens = Model . relations && Model . relations . accessTokens ;
499499
500+ const relationsConfig = Model . settings . relations || { } ;
501+ const hasPolyMorphicTokens = ( relationsConfig . accessTokens || { } ) . polymorphic ;
500502 // display a temp warning message for users using multiple users config
501- if ( hasManyTokens . polymorphic ) {
503+ if ( hasPolyMorphicTokens ) {
502504 console . warn (
503505 'The app configuration follows the multiple user models setup ' +
504506 'as described in http://ibm.biz/setup-loopback-auth' ,
@@ -508,7 +510,6 @@ app._verifyAuthModelRelations = function() {
508510
509511 if ( hasManyTokens ) return ;
510512
511- const relationsConfig = Model . settings . relations || { } ;
512513 const accessTokenName = ( relationsConfig . accessTokens || { } ) . model ;
513514 if ( accessTokenName ) {
514515 console . warn (
You can’t perform that action at this time.
0 commit comments