0

`

  1. Super Admin - create users, create admin, read, create, delete : all organizations

  2. Admin - read, create, delete : all organizations

  3. User - read, create, delete : specific organizations

Role Schema

  • name : superAdmin/admin/user
  • permissions : permisssion[]

Permission Schema

  • name : create user, create admin, read, create, delete
  • organizationAccess: organizationId[] `

I have predefined permissions for SuperAdmin and admin but, user can only have create, read, and delete for the specific organization that the user belongs to. how to implement this in a NEST guard? should I make another NEST guard for this? Please help me out.

  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Aug 19 '23 at 17:54

0 Answers0