forked from ZwiiCMS-Team/ZwiiCampus
Alerte si le dossier partagé a été supprimé
This commit is contained in:
parent
fc197b647d
commit
dd194e2488
6
core/vendor/filemanager/config/config.php
vendored
6
core/vendor/filemanager/config/config.php
vendored
@ -56,8 +56,9 @@ if (!is_null($u) && !is_null($g) && !is_null($userId)) {
|
||||
if (
|
||||
is_null($profil)
|
||||
|| $g['profil'][$group][$profil]['filemanager'] === false
|
||||
)
|
||||
) {
|
||||
exit("<h1 style='color: red'>Accès interdit au gestionnaire de fichiers !</h1>");
|
||||
}
|
||||
|
||||
$file = $g['profil'][$group][$profil]['file'];
|
||||
$folder = $g['profil'][$group][$profil]['folder'];
|
||||
@ -70,6 +71,9 @@ if (!is_null($u) && !is_null($g) && !is_null($userId)) {
|
||||
$uploadDir = empty($sharedPath) ? '/site/file/source/' . $courseId . '/' : $sharedPath;
|
||||
|
||||
$currentPath = '../../..' . $uploadDir . '/';
|
||||
if (is_dir($uploadDir) == false ) {
|
||||
exit("<h1 style='color: red'>Le dossier partagé est inexistant, contactez l'administrateur.</h1>");
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user