Something went wrong. Try again.
Something went wrong. Try again.
635 B · 23 lines
TypeScript
at main
123456789101112131415161718192021222324/*|--------------------------------------------------------------------------| Bouncer abilities|--------------------------------------------------------------------------|| You may export multiple abilities from this file and pre-register them| when creating the Bouncer instance.|| Pre-registered policies and abilities can be referenced as a string by their| name. Also they are must if want to perform authorization inside Edge| templates.|*/
import { Bouncer } from '@adonisjs/bouncer'
/** * Delete the following ability to start from * scratch */export const editUser = Bouncer.ability(() => { return true})