Allow editing symlinked files

This commit is contained in:
Dane Everitt 2018-01-21 14:24:59 -06:00
parent c69f48ad83
commit c369151397
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* `[beta.4]` — Fixes behavior of variable validation to not break the page when no rules are provided.
* `[beta.4]` — Fix bug preventing the editing of files in the file manager.
### Added
* Added support for editing symlinked files on the Panel.
## v0.7.0-beta.4 (Derelict Dermodactylus)
### Fixed
* `[beta.3]` — Fixes a bug with the default environment file that was causing an inability to perform a fresh install when running package discovery.

View File

@ -86,7 +86,7 @@ class UpdateFileContentsFormRequest extends ServerFormRequest
}
}
if (! $stats->file || ! in_array($stats->mime, $config->get('pterodactyl.files.editable'))) {
if ((! $stats->file && ! $stats->symlink) || ! in_array($stats->mime, $config->get('pterodactyl.files.editable'))) {
throw new FileTypeNotEditableException(trans('server.files.exceptions.invalid_mime'));
}