Require admin to update startup argument.

This commit is contained in:
Dane Everitt 2017-02-16 14:23:22 -05:00
parent 8740be05b3
commit 10164f5a51
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -649,7 +649,7 @@ class ServerRepository
try { try {
// Check the startup // Check the startup
if (isset($data['startup'])) { if (isset($data['startup']) && $admin) {
$server->startup = $data['startup']; $server->startup = $data['startup'];
$server->save(); $server->save();
} }