Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

не работает disabledCommands #111

Open
Mandzuk opened this issue Feb 5, 2018 · 0 comments
Open

не работает disabledCommands #111

Mandzuk opened this issue Feb 5, 2018 · 0 comments

Comments

@Mandzuk
Copy link

Mandzuk commented Feb 5, 2018

Добрый день. Столкнулся с проблемой отключения команды 'mkdir'.
Вот мой конфиг
`'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\Controller',
'access' => ['@'],
'disabledCommands' => ['mkdir'],

        'roots' => [
            [
                'baseUrl'=> 'http://site.my',
                'basePath'=>'@frontend/web',
                'path' => 'files',
                'name' => 'All files',
                'access' => ['read' => 'file_manager_all', 'write' => 'file_manager_all'],
            ],
            [
                'class' => 'mihaildev\elfinder\volume\UserPath',
                'baseUrl'=> 'http://site.my',
                'basePath'=>'@frontend/web',
                'path'  => 'files/user_{id}',
                'name'  => 'My files',
                'access' => ['read' => '*', 'write' => '*'],
            ],
        ],
    ]
],`

Добавление mkdir в disabledCommands не помогло та, как функция осталась http://joxi.ru/gmvOEx1cx3dPj2
Получилось убрать создание папки, добавив в файл studio-42/elfinder/php/elFinderVolumeDriver.class.php следующее http://joxi.ru/DmB4d9gtNDg37A . Вот результат http://joxi.ru/D2PE7wgfd9Bn7A . Но либу костыльно править, подскажите, существует ли другой метод? Спасибо

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant