Optionally restrict team creation to site admins
authorMarius Mathiesen <marius@gitorious.org>
Mon, 11 Feb 2013 13:45:10 +0000 (14:45 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Mon, 11 Feb 2013 13:45:10 +0000 (14:45 +0100)
commitafdfe0ccc53cecf629388dad729d1d4245356d7e
tree12da63f2abd578b844773a811a6e6607e27ef03c
parent4beb75208146dbf70926af2414be58e956725dfb
Optionally restrict team creation to site admins

By specifying in config/gitorious.yml:

  only_site_admins_can_create_teams: true

only site admin users will be allowed to create teams.  This will hide
the "new team" links from the UI and enforce this restriction in
controllers.
app/controllers/groups_controller.rb
app/helpers/groups_helper.rb
app/views/groups/index.html.erb
config/gitorious.sample.yml
test/functional/groups_controller_test.rb