<?php
namespace ComptaFlowUK\Security;
defined('ABSPATH') || exit;
class Capabilities {
    
    public static function init(): void {
        // Nothing to do for now
    }
    
    public static function addCapabilities(): void {
        $role = get_role('administrator');
        if ($role) {
            $role->add_cap('manage_comptaflow_uk');
        }
    }
    
    public static function removeCapabilities(): void {
        $role = get_role('administrator');
        if ($role) {
            $role->remove_cap('manage_comptaflow_uk');
        }
    }
}
