Ruslan Gonzalez
Ruslan Gonzalez
Here's another idea of improving when there's an empty array #23
Maybe with an interceptor for serializing the roles by deleting the unknown roles from the array, what do you think? this feature maybe interested to be handled from this package...
>However getting to your original issue! I'm not sure I 100% follow! So is this a permission from the database or a permission provided to the RoleBuilder? If it was...
> Ahhhh yes, sorry, misunderstood. So, if you're using typeorm you could use a subscriber to update your roleBuilder's roles but that wouldn't invoke a change when the DB is...
> @ruslanguns don't suppose you've got a stack trace? A stack trace sounds good.
This is a matter of using the decorators overriding each methods OR using the built in permissions which you can find right there: https://github.com/nestjsx/crud/wiki/Controllers#additional-decorators
Chekout their wiki I'm sure they have something regarding roles, but not sure it is based on nest-access-control package. El jue., 27 ago. 2020 20:16, Fakhriddin escribió: > @ruslanguns ,...
@Tyler-V nice example. But how did you inject the rolesBuilder in the controller ?
@Tyler-V nevermind I just discovered by myself the @InjectRolesBuilder() decorator... For whom are looking for doing this kind of roles validation as @Tyler-V does above, just need to inject in...
wow this case has been opened since 2020, is there existing any approach to expose a service like this? thanks in advanced1