Eco-Gest / Backend-Laravel

0 stars 0 forks source link

Creation of Policies to handle access control to ressources #43

Closed eleonoreeuzenes closed 1 month ago

eleonoreeuzenes commented 1 month ago

Description

This PR introduces several improvements to the UserController and PostController to enhance security and data access control. It includes the implementation of Laravel policies for user access and refactoring of methods to leverage these policies.

Changes Made

Motivation

For better control over user and post access, policies are now used to centralize and standardize authorization checks. This improves security by ensuring that access permissions are consistently applied and reduces code duplication.

AugustinSeguin commented 1 month ago

il faudrait faire la même chose pour UserPostParticipationController.php ;)