diff --git a/rhodecode/templates/base/base.html b/rhodecode/templates/base/base.html
--- a/rhodecode/templates/base/base.html
+++ b/rhodecode/templates/base/base.html
@@ -223,7 +223,11 @@
%if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
- - ${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}
+ %if h.HasPermissionAll('hg.admin')('access admin main page'):
+ - ${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}
+ %else:
+ - ${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}
+ %endif
- ${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}
%endif
- ${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}