mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-09 18:03:44 +02:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
0afa568095
commit
fb182ffb4a
@@ -141,9 +141,9 @@ class SubuserRepository
|
||||
} catch (\Exception $ex) {
|
||||
throw $ex;
|
||||
}
|
||||
} else if ($server->owner === $user->id) {
|
||||
} elseif ($server->owner === $user->id) {
|
||||
throw new DisplayException('You cannot add the owner of a server as a subuser.');
|
||||
} else if (Models\Subuser::select('id')->where('user_id', $user->id)->where('server_id', $server->id)->first()) {
|
||||
} elseif (Models\Subuser::select('id')->where('user_id', $user->id)->where('server_id', $server->id)->first()) {
|
||||
throw new DisplayException('A subuser with that email already exists for this server.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user