`
Super Admin - create users, create admin, read, create, delete : all organizations
Admin - read, create, delete : all organizations
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.