docs: add inline documentation where missing
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Security\Voter;
|
||||
|
||||
use App\BusProNet\Model\Booking;
|
||||
@@ -7,6 +9,13 @@ use App\Entity\User;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
|
||||
|
||||
/**
|
||||
* Determines access permissions for booking operations.
|
||||
*
|
||||
* Enforces ownership check via personId matching. VIEW access requires ownership,
|
||||
* EDIT access additionally requires the booking to be in an editable state
|
||||
* (determined by booking.isEditable()).
|
||||
*/
|
||||
class BookingVoter extends Voter
|
||||
{
|
||||
public const VIEW = 'VIEW';
|
||||
|
||||
Reference in New Issue
Block a user