forked from ZwiiCMS-Team/ZwiiCMS
Groupe Edit share folder
This commit is contained in:
parent
c13f01899b
commit
6ee961f618
@ -487,6 +487,7 @@ class user extends common
|
|||||||
'rename' => $this->getInput('groupEditFolderRename', helper::FILTER_BOOLEAN),
|
'rename' => $this->getInput('groupEditFolderRename', helper::FILTER_BOOLEAN),
|
||||||
'copycut' => $this->getInput('groupEditFolderCopycut', helper::FILTER_BOOLEAN),
|
'copycut' => $this->getInput('groupEditFolderCopycut', helper::FILTER_BOOLEAN),
|
||||||
'permission' => $this->getInput('groupEditFolderPermission', helper::FILTER_BOOLEAN),
|
'permission' => $this->getInput('groupEditFolderPermission', helper::FILTER_BOOLEAN),
|
||||||
|
'path' => $this->getInput('groupEditPath'),
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
@ -500,8 +501,9 @@ class user extends common
|
|||||||
|
|
||||||
self::$sharePath = $this->getSubdirectories('./site/file/source');
|
self::$sharePath = $this->getSubdirectories('./site/file/source');
|
||||||
self::$sharePath = array_flip(self::$sharePath);
|
self::$sharePath = array_flip(self::$sharePath);
|
||||||
|
self::$sharePath = array_merge( ['./site/file/source/' => '/'], self::$sharePath);
|
||||||
|
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie;
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'title' => helper::translate('Editer groupe'),
|
'title' => helper::translate('Editer groupe'),
|
||||||
'view' => 'groupEdit'
|
'view' => 'groupEdit'
|
||||||
|
@ -116,9 +116,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::select('connectAttempt', $module::$sharePath, [
|
<?php echo template::select('groupEditPath', $module::$sharePath, [
|
||||||
'label' => 'Racinde du dossier partagé',
|
'label' => 'Racine du dossier partagé',
|
||||||
'selected' => $this->getData(['group', $this->getUrl(2), 'path'])
|
'selected' => $this->getData(['group', $this->getUrl(2), 'folder', 'path'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
5
core/vendor/filemanager/config/config.php
vendored
5
core/vendor/filemanager/config/config.php
vendored
@ -24,9 +24,8 @@ $g = json_decode(file_get_contents('../../../site/data/group.json'), true);
|
|||||||
$group = $u['user'][$userId]['group'];
|
$group = $u['user'][$userId]['group'];
|
||||||
$file = $g['group'][$group]['file'];
|
$file = $g['group'][$group]['file'];
|
||||||
$folder = $g['group'][$group]['folder'];
|
$folder = $g['group'][$group]['folder'];
|
||||||
|
$uploadDir = $g['group'][$group]['folder']['path'];
|
||||||
$uploadDir = $g['group'][$group]['path'];
|
$currentPath = '../../.' . $uploadDir;
|
||||||
$currentPath = '../../..' . $uploadDir;
|
|
||||||
if (!is_dir($currentPath ))
|
if (!is_dir($currentPath ))
|
||||||
mkdir($currentPath );
|
mkdir($currentPath );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user