Guten Tag,
Habe folgendes Problem:
Sending 500 ("Server Error") response:
TypeError: Cannot read property 'authenticated' of undefined
at module.exports (/server/web/api/policies/userInfo.js:6:21)
at routeTargetFnWrapper (/server/web/node_modules/sails/lib/router/bind.js:181:5)
at callbacks (/server/web/node_modules/@sailshq/express/lib/router/index.js:164:37)
at param (/server/web/node_modules/@sailshq/express/lib/router/index.js:138:11)
at pass (/server/web/node_modules/@sailshq/express/lib/router/index.js:145:5)
at nextRoute (/server/web/node_modules/@sailshq/express/lib/router/index.js:100:7)
at callbacks (/server/web/node_modules/@sailshq/express/lib/router/index.js:167:11)
at module.exports (/server/web/node_modules/sails/lib/hooks/cors/clear-headers.js:14:3)
at routeTargetFnWrapper (/server/web/node_modules/sails/lib/router/bind.js:181:5)
at callbacks (/server/web/node_modules/@sailshq/express/lib/router/index.js:164:37)
at param (/server/web/node_modules/@sailshq/express/lib/router/index.js:138:11)
at pass (/server/web/node_modules/@sailshq/express/lib/router/index.js:145:5)
at nextRoute (/server/web/node_modules/@sailshq/express/lib/router/index.js:100:7)
at callbacks (/server/web/node_modules/@sailshq/express/lib/router/index.js:167:11)
at sails.router.bind._middlewareType (/server/web/node_modules/sails/lib/hooks/csrf/index.js:115:20)
at routeTargetFnWrapper (/server/web/node_modules/sails/lib/router/bind.js:181:5)
at callbacks (/server/web/node_modules/@sailshq/express/lib/router/index.js:164:37)
at param (/server/web/node_modules/@sailshq/express/lib/router/index.js:138:11)
at pass (/server/web/node_modules/@sailshq/express/lib/router/index.js:145:5)
at nextRoute (/server/web/node_modules/@sailshq/express/lib/router/index.js:100:7)
at callbacks (/server/web/node_modules/@sailshq/express/lib/router/index.js:167:11)
at _addResViewMethod (/server/web/node_modules/sails/lib/hooks/views/res.view.js:372:3)