<?php
namespace Traits\Menu;

trait Droit
{
    // phpcs:ignore
    public function GetALL() :bool
    {
        return
            in_array($_SERVER['COMPUTERNAME'], [
                'PAREDES',
                'POOLE',
                'TAVERNY',
                'SANTIAGO',
                'CLISSON',
                'ONOMICHI',
                'LASVEGAS',
                'HOUSTON',
                'GAP',
                'BONIFACIO',
                'PUGET',
                'HILLION',
                'MOUTHE',
                'VIENNE',
                'SEHALTIEL',
                'FIGARI',
                'DRAVEIL',
                'PABU',
                'MEDAN',
                'TAMRI',
                'TORINO',
                'POUZZOLES',
                'ONAY',
                'PAIMPONT',
                'PUTEAUX',
                'OSTENDE',
                'PRIEZ',
            ], true)
            &&
            in_array($_SESSION['Session_Login'], [
                'YA',
                'RACHAT',
                'SGR',
                'VICTOR',
                'BBA',
                'YAB',
                'MSA',
                'OXAUSER',
                'RA',
                'MASTER',
                'MCH',
            ], true)
        ;
    }
}
