Add ServerTransferringException, use is_null
This commit is contained in:
parent
5668a780e2
commit
fd848985ee
9 changed files with 36 additions and 14 deletions
|
@ -79,7 +79,7 @@ class AuthenticateServerAccess
|
|||
}
|
||||
}
|
||||
|
||||
if ($server->transfer !== null) {
|
||||
if (! is_null($server->transfer)) {
|
||||
if (! $user->root_admin || ($user->root_admin && ! $request->routeIs($this->except))) {
|
||||
throw new ConflictHttpException('Server is currently being transferred.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue