mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -1330,7 +1330,10 @@ class BaseHandler(RequestHandler):
|
||||
if self.authenticator.refresh_pre_stop:
|
||||
auth_user = await self.refresh_auth(user, force=True)
|
||||
if auth_user is None:
|
||||
if self.current_user.kind == "user" and self.current_user.name == user.name:
|
||||
if (
|
||||
self.current_user.kind == "user"
|
||||
and self.current_user.name == user.name
|
||||
):
|
||||
raise web.HTTPError(
|
||||
403, "auth has expired for %s, login again", user.name
|
||||
)
|
||||
|
Reference in New Issue
Block a user