diff --git a/backend/config/main.php b/backend/config/main.php index 02cad86..79058ef 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -17,7 +17,7 @@ return [ 'disabledCommands' => ['netmount'], //отключение ненужных команд https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#commands 'roots' => [ [ - 'class' => 'mihaildev\elfinder\UserPath', + 'class' => 'mihaildev\elfinder\volume\UserPath', 'path' => '../../storage/user_{id}', 'name' => 'My Documents' ], @@ -62,7 +62,21 @@ return [ 'roles' => ['@'], ] + ], + 'file/uploader' =>[ + [ + 'actions' => ['images-upload'], + 'allow' => true, + ] + ], + 'elfinder' => [ + [ + 'actions' => ['manager'], + 'allow' => true, + ] ] + + ] ], 'modules' => [ -- libgit2 0.21.4