You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i go to /myaccount/journal, it doesn't work per controller/action, i got 500 server error. Before i use sails permission, this part works.
In the console there's warning and error:
warn: Model [ journal ] not found in model cache
error: Sending 500 ("Server Error") response:
TypeError: Cannot read property 'autoCreatedBy' of undefined
at OwnerPolicy (\node_modules\sails-permissions\dist\api\policies\OwnerPolicy.js:21:34)
at routeTargetFnWrapper (\node_modules\sails\lib\router\bind.js:179:5)
at \node_modules\sails\lib\router\bind.js:244:14
at callbacks (\node_modules\sails\node_modules\express\lib\router\index.js:164:37)
at param (\node_modules\sails\node_modules\express\lib\router\index.js:138:11)
at param (\node_modules\sails\node_modules\express\lib\router\index.js:135:11)
at pass (\node_modules\sails\node_modules\express\lib\router\index.js:145:5)
at nextRoute (\node_modules\sails\node_modules\express\lib\router\index.js:100:7)
at callbacks (\node_modules\sails\node_modules\express\lib\router\index.js:167:11)
at \node_modules\sails\lib\router\bind.js:187:7
at module.exports (\node_modules\sails-permissions\dist\api\policies\AuditPolicy.js:22:3)
at routeTargetFnWrapper (\node_modules\sails\lib\router\bind.js:179:5)
at \node_modules\sails\lib\router\bind.js:244:14
at callbacks (\node_modules\sails\node_modules\express\lib\router\index.js:164:37)
at param (\node_modules\sails\node_modules\express\lib\router\index.js:138:11)
at param (\node_modules\sails\node_modules\express\lib\router\index.js:135:11)
[TypeError: Cannot read property 'autoCreatedBy' of undefined]
so just wondering if sails-auth, sails-permission already use some routes, i can find some in sails-auth, it seems it has no conflict with my own route:
Hello, I'm using sails
0.12.1
, sails-auth2.1.3
, sails-permissions2.2.0
in my app, i have route set as
JournalController
when i go to
/myaccount/journal
, it doesn't work per controller/action, i got500
server error. Before i use sails permission, this part works.In the console there's warning and error:
so just wondering if sails-auth, sails-permission already use some routes, i can find some in sails-auth, it seems it has no conflict with my own route:
route from sails-auth
also, what's the autoCreatedBy error about?
some update: if i only use sails-auth, it still works, it seems the issue is with sails-permissions
Thanks!
The text was updated successfully, but these errors were encountered: