# HG changeset patch # User Marcin Kuzminski # Date 2010-10-18 02:11:59 # Node ID ff449e9e6e38e58020b697a7177eefd5f2a5ff74 # Parent f31f1327c1e90f766bb810b3dd0cd9a6fcaeb4a2 fixed chrome repo switcher issue diff --git a/rhodecode/lib/middleware/simplehg.py b/rhodecode/lib/middleware/simplehg.py --- a/rhodecode/lib/middleware/simplehg.py +++ b/rhodecode/lib/middleware/simplehg.py @@ -86,8 +86,8 @@ class SimpleHg(object): except: log.error(traceback.format_exc()) return HTTPInternalServerError()(environ, start_response) + #check permissions for this repository - if action == 'push': if not HasPermissionAnyMiddleware('repository.write', 'repository.admin')\ @@ -95,6 +95,7 @@ class SimpleHg(object): return HTTPForbidden()(environ, start_response) else: + #any other action need at least read permission if not HasPermissionAnyMiddleware('repository.read', 'repository.write', 'repository.admin')\ diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -357,7 +357,6 @@ padding:0; max-height:275px; overflow-x:hidden; overflow-y:auto; -white-space:nowrap; } #header #header-inner #quick li ul li { @@ -1442,7 +1441,7 @@ padding:0 30px; } #footer p { -background:none repeat scroll 0 0 #2F2F2F; +background:url("../images/header_inner.png") repeat-x scroll 0 0 #003367; color:#FFF; font-weight:700; padding:15px 25px 15px 0; @@ -2150,10 +2149,10 @@ min-width:1224px; } #content { -min-height:100%; +min-height:85%; clear:both; overflow:hidden; -padding:10px 30px; +padding:14px 30px; } #content div.box div.title div.search {