Skip to content

Interface: RevokeAllOptions ​

Defined in: packages/core/src/bulk.ts:8

Options of SubjectRbac.revokeAll.

Properties ​

PropertyTypeDescriptionDefined in
allGuards?booleanAlso remove the roles and direct permissions of every other guard. Default: only the subject's guard.packages/core/src/bulk.ts:10
allTeams?booleanAlso remove them in every team, global scope included. Default: only the subject's team. Needs the optional adapter method getSubjectLinks when teams are enabled. With teams disabled there is only the global scope, so it changes nothing.packages/core/src/bulk.ts:16

Released under the MIT License. Inspired by spatie/laravel-permission.