full-stack-monorepo icon indicating copy to clipboard operation
full-stack-monorepo copied to clipboard

Casljs Logic

Open uzunertoprak opened this issue 3 years ago • 1 comments

To Do

create entities

  • Role entity: ManyToMany(user), role name: string
  • Action entity: ManyToMany(Role), ManyToOne(Subject), action: ActionEnum
  • Subject entity: subject name: string

create repositories

  • User Repository: + find all permissions with subject and action relations
  • Role Repository: crud + add role to user
  • Action Repository: crud + add action to role [action, subject]
  • Subject Repository: crud

jwt strategy

  • Add permissions with subject, action relations to jwt payload

uzunertoprak avatar Jul 26 '22 11:07 uzunertoprak

image

Istedikleriniz bu sekilde mi

productdevbook avatar Jul 27 '22 07:07 productdevbook