Show More
@@ -45,7 +45,7 b' def checkauthz(hgweb, req, op):' | |||||
45 | authentication info). Return if op allowed, else raise an ErrorResponse |
|
45 | authentication info). Return if op allowed, else raise an ErrorResponse | |
46 | exception.''' |
|
46 | exception.''' | |
47 |
|
47 | |||
48 | user = req.env.get('REMOTE_USER') |
|
48 | user = req.env.get(r'REMOTE_USER') | |
49 |
|
49 | |||
50 | deny_read = hgweb.configlist('web', 'deny_read') |
|
50 | deny_read = hgweb.configlist('web', 'deny_read') | |
51 | if deny_read and (not user or ismember(hgweb.repo.ui, user, deny_read)): |
|
51 | if deny_read and (not user or ismember(hgweb.repo.ui, user, deny_read)): | |
@@ -61,7 +61,7 b' def checkauthz(hgweb, req, op):' | |||||
61 | return |
|
61 | return | |
62 |
|
62 | |||
63 | # enforce that you can only push using POST requests |
|
63 | # enforce that you can only push using POST requests | |
64 | if req.env['REQUEST_METHOD'] != 'POST': |
|
64 | if req.env[r'REQUEST_METHOD'] != r'POST': | |
65 | msg = 'push requires POST request' |
|
65 | msg = 'push requires POST request' | |
66 | raise ErrorResponse(HTTP_METHOD_NOT_ALLOWED, msg) |
|
66 | raise ErrorResponse(HTTP_METHOD_NOT_ALLOWED, msg) | |
67 |
|
67 |
General Comments 0
You need to be logged in to leave comments.
Login now