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>
Fri, 15 Feb 2013 13:08:26 +0000 (14:08 +0100)
commit2f98fec06b60ced75ed0c95998dc02f62baeab75
tree124e81eb1155aeb0dbfd6549fedc3402cb5460e2
parent9c384312ad593409d347b6f2ee5aa2323b4b24b7
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.

Conflicts:
config/gitorious.sample.yml
app/controllers/groups_controller.rb
app/helpers/groups_helper.rb
app/views/groups/index.html.erb
config/gitorious.sample.yml
lib/gitorious.rb
test/functional/groups_controller_test.rb