import { Request } from "express" ; import { AccessControl } from "role-acl" ; const acl = new AccessControl ( ) ; acl . grant ( "user" ) . execute ( "get" ) . on ( "*" ) . execute ( "list" ) . on ( "*" ) . grant ( "admin" ) . extend ( "user" ) . execute ( "remove" ) . on ( "users" ) . condition ( ( context ) => context . params . id !== ( context . user as any ) . id ) ; export { acl as UserACL } ;