sergey-telpuk / nestjs-rbac

Awesome RBAC for NestJs
Other
426 stars 36 forks source link

Feature Request - WildCard Grant For Role #85

Open ogheneovo12 opened 1 year ago

ogheneovo12 commented 1 year ago

For instance, if a superadmin is to be granted all existing permissions, this presents a challenge with DynamicStorage. The permissions granted to the superadmin will have to be synced every time new permissions are created. Alternatively, the granted permissions can be exempted from being persisted and generated at the point of getRbac call. To avoid this issue, it would be ideal to have a wildcard grant feature so that there is no need to sync the permissions.

ogheneovo12 commented 1 year ago

While I acknowledge that there may be potential implications, I have not yet given them any thorough consideration.