forked from Alex/Pterodactyl-Panel
Allow editing symlinked files
This commit is contained in:
parent
c69f48ad83
commit
c369151397
@ -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.
|
||||
|
@ -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'));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user