i am developping app which requires 2 types of users: managers and clients. Each client have his own files. How can i setup auth guards and policies so that client can update his own files and manager can update anyone's files. My goal is to have FileController which is protected by ManagerGuard or ClientGuard and in update methond can call $this->authorize('update', $file);
Thanks for any advices, have a nice day
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire