Skip to content

Type Alias: PermissionTarget ​

ts
type PermissionTarget = 
  | {
  subject: Subject;
  target: "subject";
}
  | {
  role: Role;
  target: "role";
};

Defined in: packages/core/src/events.ts:52

Who received / lost the permissions: a subject (direct permissions) or a role.

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