<?php

namespace ComptaFlowPro\Security;

defined('ABSPATH') || exit;

class Capabilities {
    
    public static function init(): void {
        // Rien à faire pour l'instant
    }
    
    public static function addCapabilities(): void {
        $role = get_role('administrator');
        if ($role) {
            $role->add_cap('manage_comptaflow');
        }
    }
    
    public static function removeCapabilities(): void {
        $role = get_role('administrator');
        if ($role) {
            $role->remove_cap('manage_comptaflow');
        }
    }
}