sergey-telpuk / nestjs-rbac

Awesome RBAC for NestJs
Other
426 stars 36 forks source link

Resource based permission #66

Closed mshafiq235 closed 3 years ago

mshafiq235 commented 4 years ago

Hi, The library is amazing and easy to integrate. I just wanted to ask if it supports resource-based permissions as well.

For example We have two stores in our database. Each store has its own manager. Only the manager assigned to the store can view and update the store.

sergey-telpuk commented 4 years ago

@mshafiq235 hi, I guess for this aim there is need to implement adapter layer

zanio commented 3 years ago

@mshafiq235 hi, I guess for this aim there is need to implement adapter layer

Please @sergey-telpuk how can this be done

sergey-telpuk commented 3 years ago

@mshafiq235 Hi, rbac doesn't work with db directly. You can use the service for managing access to data.