Mercurial > kallithea
diff rhodecode/templates/admin/repos/repo_add_base.html @ 3333:069884383cc7 beta
Implemented #738 Giving a user WRITE+ permissions on folder should not allow repo creation in root folder.
user can create repos only if he got explicitly permission for creating repos globally, or have WRITE+ permission on a group.
Then he can create repositories inside this group
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 05 Feb 2013 03:04:46 +0100 |
parents | 79c5967a1e5c |
children | ec6354949623 |
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos/repo_add_base.html Tue Feb 05 01:57:37 2013 +0100 +++ b/rhodecode/templates/admin/repos/repo_add_base.html Tue Feb 05 03:04:46 2013 +0100 @@ -9,8 +9,8 @@ <label for="repo_name">${_('Name')}:</label> </div> <div class="input"> - ${h.text('repo_name',c.new_repo,class_="small")} - %if not h.HasPermissionAll('hg.admin')('repo create form'): + ${h.text('repo_name',class_="small")} + %if not c.rhodecode_user.is_admin: ${h.hidden('user_created',True)} %endif </div>