Skip to content

How trully config conditions on Vue 3 / TS / Composition API? #799

Discussion options

You must be logged in to vote

Yes, sorry, read docs one more time and everything works now, problem was in "Subject type detection" and how exactly I need to provide it to CASL. So if anyone will face this problem next time, everything you need to do -> wrap your user object inside subject function, to provide type declaration 👇

Link to docs: https://casl.js.org/v6/en/guide/subject-type-detection

Some more words to you personally @stalniy : Дуже дякую за таку чудову бібліотеку, радий що такий продукт зроблений українцем для всього світу! Гарного Вам дня та всього найкращого!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@romanhrynevych
Comment options

Answer selected by romanhrynevych
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants