Fix server editing
This commit is contained in:
parent
232e9a05ed
commit
ff9904227b
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ class ServerRepository
|
|||
}
|
||||
|
||||
// Update Server Owner if it was passed.
|
||||
if (isset($data['owner']) && $data['owner'] !== $owner->email) {
|
||||
if (isset($data['owner']) && $data['owner'] !== $server->user->email) {
|
||||
$newOwner = Models\User::select('id')->where('email', $data['owner'])->first();
|
||||
$server->owner_id = $newOwner->id;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue