mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 16:44:44 +02:00
Merge pull request #228 from Pterodactyl/analysis-XWDo3P
Apply fixes from StyleCI
This commit is contained in:
commit
6331a29962
@ -141,9 +141,9 @@ class SubuserRepository
|
|||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
throw $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.');
|
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.');
|
throw new DisplayException('A subuser with that email already exists for this server.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user