<?php
namespace App\Controllers;

use App\Core\Auth;
use App\Core\Controller;
use App\Core\Permission;

final class UserController extends Controller
{
    public function index(): void
    {
        Auth::requireLogin();
        Permission::require('utilisateurs.view');
        $this->redirect('/administration/comptes');
    }
}
