apexJCL / casl-django

Converts Django permissions to CASL-like rules
MIT License
6 stars 3 forks source link

Need example Using casl-django #11

Open ghost opened 2 years ago

ghost commented 2 years ago

Hi!

I want to use casl-django for a front-end application in vue.js. Can you tell me how to do this? Only interested Django side.

Thanks!

apexJCL commented 2 years ago

@muzaman sadly I no longer support this project, and it's beena while since I've used it.

All this package does is mapping django permissions into the object shape CASL uses, so you register them in the same way:

  1. Fetch permissions from BE
  2. Call CASL and register permissions using BE's response