diff rhodecode/controllers/forks.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 d2d35cf2b351
children 6b176c679896
line wrap: on
line diff
--- a/rhodecode/controllers/forks.py	Wed Sep 12 22:20:56 2012 +0200
+++ b/rhodecode/controllers/forks.py	Thu Sep 13 19:36:56 2012 +0200
@@ -53,7 +53,7 @@
         super(ForksController, self).__before__()
 
     def __load_defaults(self):
-        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()
         c.landing_revs_choices = choices