Skip to content

Commit 10164f5

Browse files
committed
Require admin to update startup argument.
1 parent 8740be0 commit 10164f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ public function updateStartup($id, array $data, $admin = false)
649649

650650
try {
651651
// Check the startup
652-
if (isset($data['startup'])) {
652+
if (isset($data['startup']) && $admin) {
653653
$server->startup = $data['startup'];
654654
$server->save();
655655
}

0 commit comments

Comments
 (0)