-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should include the default all in PrismaAbility types #584
Comments
Probably you are right |
Can you make a PR that changes it? |
scriptcoded
added a commit
to scriptcoded/casl
that referenced
this issue
Apr 29, 2022
Fixes issue stalniy#584
stalniy
pushed a commit
that referenced
this issue
Jun 14, 2022
* fix: add 'all' to AbilityTuple Fixes issue #584 * fix: improved AbilityTuple adds ExtendedAbilityTuple that adds 'all' to the subject of AbilityTuple without requiring the user to manually add the type
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In this class the default ability tuple is
AbilityTuple = [string, Prisma.ModelName]
but if I read correctly the documentation casl have aall
default keyword. IsPrismaAbility
class should useAbilityTuple = [string, 'all' | Prisma.ModelName]
instead ?The text was updated successfully, but these errors were encountered: