forked from ZwiiCMS-Team/ZwiiCMS
Modif sylvain rfm
This commit is contained in:
parent
c20d5e99d2
commit
bcaa1d0afc
|
@ -14,15 +14,12 @@ date_default_timezone_set('Europe/Paris');
|
|||
setlocale(LC_CTYPE, 'fr_FR'); //correct transliteration
|
||||
|
||||
// Validation des actions (delete, rename) par lecture du groupe de l'utilisateur via cookie et user.json
|
||||
$val = false;
|
||||
if( is_file('../../../site/data/user.json')){
|
||||
$json = file_get_contents('../../../site/data/user.json');
|
||||
$user = json_decode($json, true);
|
||||
$val = $user['user'][$_COOKIE["ZWII_USER_ID"]]['group'] >= 3 ? true : false;
|
||||
}
|
||||
else{
|
||||
$val = false;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue