# HG changeset patch # User Marcin Kuzminski # Date 2011-09-24 19:12:30 # Node ID 92f0065ba238db687a6225c1086adfeaa6f05905 # Parent 269905fac50a6e1a674c16be7559f880119b8fb5 hide add new file button if user has no permission for it 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