diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/resources/root_resource.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/service/pixelated/resources/root_resource.py b/service/pixelated/resources/root_resource.py index 8353ed7e..54fe7b4a 100644 --- a/service/pixelated/resources/root_resource.py +++ b/service/pixelated/resources/root_resource.py @@ -60,11 +60,10 @@ class RootResource(BaseResource): def getChild(self, path, request): if path == '': return self + if self._mode == MODE_STARTUP: + return UnavailableResource() if self._is_xsrf_valid(request): - if self._mode == MODE_RUNNING: - return self._child_resources.get(path) - else: - return UnavailableResource() + return self._child_resources.get(path) return UnAuthorizedResource() def _is_xsrf_valid(self, request): |