<?php
require_once __DIR__ . "/../helpers/AuthHelper.php";
require_once __DIR__ . "/../helpers/PermissionHelper.php";

class FinanceiroController {
    public function index() {
        AuthHelper::check();
        PermissionHelper::redirecionarSeNaoTemPermissao("financeiro", "visualizar");
        
        // Redirecionar para o sistema de contas
        header("Location: " . BASE_URL . "/contas/");
        exit;
    }
}