Sails Policies problem

37 views
Skip to first unread message

nexthrm...@gmail.com

unread,
Apr 18, 2018, 5:36:28 PM4/18/18
to sails.js
i want to update my api/controllers/applicant/applicantController.js in this file i can successfully update the record
i also added policies/applicants/isAuth.js

but i don't know how can 
i use it in my 
sails.config.policy
when ever i use this it shows undefined why it's not working properly...

ApplicantController:{
'update': 'isAAuth',
},

David Griffith

unread,
May 10, 2018, 11:00:55 PM5/10/18
to sails.js
Check your spelling 'isAAuth' - double AA's there. Cheers
Reply all
Reply to author
Forward
0 new messages