The Nerd
Results
5
comments of
The Nerd
Hey Enniel, apparently you don't need a typescript version anymore, adonis v5 the way it is you can create your own middleware to check your role or permission, it ends...
> This way solve this problem: > > ``` > Route.post('/device/:id/upload', 'DeviceController.upload') > .middleware(['auth:jwt', 'is:(administrator or support or productionOwner)']) > ``` owwwwwwwwww mannn thanks thanks thanks mann ahhhhhhhh!!! saved me...
The model is located in Adonis/Acl/Role change to: `const Role = use('Adonis/Acl/Role');`
Fantastic, I've been having some problems with having to create keys manually on github, this method has cut a lot of time that I can enjoy coding even more!!!