##// END OF EJS Templates
hgweb: fix allow_read permissions when a user is specified...
Benoit Boissinot -
r7831:b5ed0ab8 default
parent child Browse files
Show More
@@ -284,7 +284,7 b' class hgweb(object):'
284
284
285 allow_read = self.configlist('web', 'allow_read')
285 allow_read = self.configlist('web', 'allow_read')
286 result = (not allow_read) or (allow_read == ['*'])
286 result = (not allow_read) or (allow_read == ['*'])
287 if not result or user in allow_read:
287 if not (result or user in allow_read):
288 raise ErrorResponse(HTTP_UNAUTHORIZED, 'read not authorized')
288 raise ErrorResponse(HTTP_UNAUTHORIZED, 'read not authorized')
289
289
290 if op == 'pull' and not self.allowpull:
290 if op == 'pull' and not self.allowpull:
General Comments 0
You need to be logged in to leave comments. Login now