Haptiplan / backend

0 stars 1 forks source link

Add policies #66

Open nimer03 opened 1 month ago

nimer03 commented 1 month ago

Create policies (and gates) to make sure that all actions are regulated.

nimer03 commented 1 month ago

Tried implementing policies. Somehow I always get a 403 error page, even if user->id is the same as one of the values in user_ids (PlayerController). Need help.

HichamElBadr commented 1 month ago

The main reason why this does not work is because the cannot() method does not refer to the store method of playerpolicy.

I'm still looking at how to solve it