You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all, it is an excellent library and also helps a lot. But, can we make the roles property to be dynamic? I mean it could take either an array of an enum or a single value enum. Cause I encountered an error when I tried to supply a single value enum to the roles property.
Hello, first of all, it is an excellent library and also helps a lot. But, can we make the roles property to be dynamic? I mean it could take either an array of an enum or a single value enum. Cause I encountered an error when I tried to supply a single value enum to the roles property.
Then, I took a look at this line of code:
nest-casl/src/factories/ability.factory.ts
Line 33 in 5068a31
The
forEach
will cause the error when roles are supplied by a single value enum. Instead we could do something like this:Thanks.
The text was updated successfully, but these errors were encountered: