• Mahmoud Aglan's avatar
    Enforce role-based data scoping across all list components · 97db5304
    Mahmoud Aglan authored
    - Add branch_id accessor to User model (resolves from role_user pivot)
    - Create AppliesRoleScope trait for one-liner scope enforcement
    - Enhance PermissionService: include head_trainer_id in group lookup,
      add training_programs and invoices table support for own_groups scope
    - Apply AppliesRoleScope to 16 list components:
      ParticipantList, GroupList, EnrollmentList, AttendanceList,
      InvoiceList, ProgramList, EvaluationList, CashSessionList,
      WalletList, AssignmentList, PersonList, FacilityList,
      ProductList, PurchaseOrderList, KitList, StockCountList
    
    Now trainers only see their assigned groups/participants,
    branch managers only see their branch data, parents only
    see their children, and receptionists are branch-scoped.
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    97db5304
Name
Last commit
Last update
..
CreateProductWizard.php Loading commit data...
KitForm.php Loading commit data...
KitList.php Loading commit data...
MovementList.php Loading commit data...
ProductForm.php Loading commit data...
ProductList.php Loading commit data...
PurchaseOrderList.php Loading commit data...
StockAdjustment.php Loading commit data...
StockAdjustmentWizard.php Loading commit data...
StockCountForm.php Loading commit data...
StockCountList.php Loading commit data...
WarehouseForm.php Loading commit data...
WarehouseList.php Loading commit data...