Allow editing symlinked files
This commit is contained in:
parent
c69f48ad83
commit
c369151397
2 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue