diff --git a/rhodecode/templates/files/files_browser.html b/rhodecode/templates/files/files_browser.html --- a/rhodecode/templates/files/files_browser.html +++ b/rhodecode/templates/files/files_browser.html @@ -26,9 +26,11 @@
${_('search file list')}
-
- ${_('add new file')} -
+ % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): +
+ ${_('add new file')} +
+ % endif