Mercurial > kallithea
diff rhodecode/controllers/admin/settings.py @ 2835:faffec4abbda beta
Implemented permissions for writing to repo
groups. Now only write access to group allows to create a repostiory
within that group
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 13 Sep 2012 19:36:56 +0200 |
parents | 9c90be87ae05 |
children | 7b0f803229be |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/settings.py Wed Sep 12 22:20:56 2012 +0200 +++ b/rhodecode/controllers/admin/settings.py Thu Sep 13 19:36:56 2012 +0200 @@ -451,7 +451,7 @@ def create_repository(self): """GET /_admin/create_repository: Form to create a new item""" - c.repo_groups = RepoGroup.groups_choices() + c.repo_groups = RepoGroup.groups_choices(check_perms=True) c.repo_groups_choices = map(lambda k: unicode(k[0]), c.repo_groups) choices, c.landing_revs = ScmModel().get_repo_landing_revs()