Skip to content

Commit c369151

Browse files
committed
Allow editing symlinked files
1 parent c69f48a commit c369151

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
99
* `[beta.4]` — Fixes behavior of variable validation to not break the page when no rules are provided.
1010
* `[beta.4]` — Fix bug preventing the editing of files in the file manager.
1111

12+
### Added
13+
* Added support for editing symlinked files on the Panel.
14+
1215
## v0.7.0-beta.4 (Derelict Dermodactylus)
1316
### Fixed
1417
* `[beta.3]` — Fixes a bug with the default environment file that was causing an inability to perform a fresh install when running package discovery.

app/Http/Requests/Server/UpdateFileContentsFormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private function checkFileCanBeEdited($server, $token)
8686
}
8787
}
8888

89-
if (! $stats->file || ! in_array($stats->mime, $config->get('pterodactyl.files.editable'))) {
89+
if ((! $stats->file && ! $stats->symlink) || ! in_array($stats->mime, $config->get('pterodactyl.files.editable'))) {
9090
throw new FileTypeNotEditableException(trans('server.files.exceptions.invalid_mime'));
9191
}
9292

0 commit comments

Comments
 (0)