Show More
@@ -167,6 +167,8 b' class SimpleGit(object):' | |||||
167 | username = REMOTE_USER(environ) |
|
167 | username = REMOTE_USER(environ) | |
168 | try: |
|
168 | try: | |
169 | user = self.__get_user(username) |
|
169 | user = self.__get_user(username) | |
|
170 | if user is None: | |||
|
171 | return HTTPForbidden()(environ, start_response) | |||
170 | username = user.username |
|
172 | username = user.username | |
171 | except: |
|
173 | except: | |
172 | log.error(traceback.format_exc()) |
|
174 | log.error(traceback.format_exc()) |
@@ -133,6 +133,8 b' class SimpleHg(object):' | |||||
133 | username = REMOTE_USER(environ) |
|
133 | username = REMOTE_USER(environ) | |
134 | try: |
|
134 | try: | |
135 | user = self.__get_user(username) |
|
135 | user = self.__get_user(username) | |
|
136 | if user is None: | |||
|
137 | return HTTPForbidden()(environ, start_response) | |||
136 | username = user.username |
|
138 | username = user.username | |
137 | except: |
|
139 | except: | |
138 | log.error(traceback.format_exc()) |
|
140 | log.error(traceback.format_exc()) |
General Comments 0
You need to be logged in to leave comments.
Login now