This repository was archived by the owner on Apr 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
app/Http/Requests/Api/Client/Servers/Files
resources/scripts/api/server/plugins Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ cd /var/www/pterodactyl
2727yarn
2828yarn build:production
2929
30+ # Assign permissions
31+ chown -R www-data:www-data /var/www/pterodactyl/*
32+
3033# Exit script
3134clear
3235php artisan up
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Pterodactyl \Http \Requests \Api \Client \Servers \Files ;
4+
5+ use Pterodactyl \Models \Permission ;
6+ use Pterodactyl \Contracts \Http \ClientPermissionsRequest ;
7+ use Pterodactyl \Http \Requests \Api \Client \ClientApiRequest ;
8+
9+ class PullFileRequest extends ClientApiRequest implements ClientPermissionsRequest
10+ {
11+ public function permission (): string
12+ {
13+ return Permission::ACTION_FILE_CREATE ;
14+ }
15+
16+ /**
17+ * @return string[]
18+ */
19+ public function rules (): array
20+ {
21+ return [
22+ 'url ' => 'sometimes|string|url ' ,
23+ 'directory ' => 'nullable|string ' ,
24+ 'filename ' => 'nullable|string ' ,
25+ 'use_header ' => 'boolean ' ,
26+ 'foreground ' => 'boolean ' ,
27+ ];
28+ }
29+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments