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

@ -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'));
}