diff rhodecode/controllers/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 2f3cba7b6d16
children d998cc84cf72 0b86972de820
line wrap: on
line diff
--- a/rhodecode/controllers/settings.py	Wed Sep 12 22:20:56 2012 +0200
+++ b/rhodecode/controllers/settings.py	Thu Sep 13 19:36:56 2012 +0200
@@ -56,7 +56,7 @@
         super(SettingsController, 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)
 
         repo_model = RepoModel()