Show More
@@ -26,6 +26,8 b' from pyramid.httpexceptions import HTTPF' | |||
|
26 | 26 | |
|
27 | 27 | from rhodecode.apps._base import BaseAppView |
|
28 | 28 | from rhodecode.lib import helpers as h |
|
29 | from rhodecode.lib.auth import LoginRequired | |
|
30 | from rhodecode.model.db import UserApiKeys | |
|
29 | 31 | |
|
30 | 32 | log = logging.getLogger(__name__) |
|
31 | 33 | |
@@ -73,6 +75,7 b' class OpsView(BaseAppView):' | |||
|
73 | 75 | redirect_to = self.request.GET.get('to') or h.route_path('home') |
|
74 | 76 | raise HTTPFound(redirect_to) |
|
75 | 77 | |
|
78 | @LoginRequired(auth_token_access=[UserApiKeys.ROLE_HTTP]) | |
|
76 | 79 | def ops_healthcheck(self): |
|
77 | 80 | from rhodecode.lib.system_info import load_system_info |
|
78 | 81 |
General Comments 0
You need to be logged in to leave comments.
Login now