Casl: `manage` keyword does not work as expected

Created on 21 Apr 2019  路  4Comments  路  Source: stalniy/casl

We are using vue with rails api, in rails we define some users' abilities to be like
action: manage, subject: ModelName
But in vue when I try to test any action against the same ModelName subject it returns false, Actually seems like manage is an alias for CRUD actions only I saw that while I was debugging
image

Any solution for this?

Most helpful comment

Hello,

Indeed manage is an alias for CRUD until casl/ability v3. Starting from v3 it鈥檚 an alias for any action

All 4 comments

Hello,

Indeed manage is an alias for CRUD until casl/ability v3. Starting from v3 it鈥檚 an alias for any action

So, just upgrade casl/Vue and casl/ability and it should work as expected

Close as there are no action items

Was this page helpful?
0 / 5 - 0 ratings