diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-17 12:59:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-17 12:59:14 +0000 |
commit | 8141110eb2698df14694e009e8312eb9df0ce738 (patch) | |
tree | 457e4041bc614ae1ea1e57da16a7ce4fc3363185 /lib/redmine.rb | |
parent | 9c9dc6e8147a3e0bf3239511c094dc5f9d2a59a0 (diff) | |
download | redmine-8141110eb2698df14694e009e8312eb9df0ce738.tar.gz redmine-8141110eb2698df14694e009e8312eb9df0ce738.zip |
Ability to allow non-admin users to create projects (#1007).
This can be enabled in permissions settings. A non-admin user who creates a project is automatically added as a project member (the first role is given, TODO: make this given role configurable).
Projects can be added from the public projects list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2750 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r-- | lib/redmine.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 5ac32b2fe..6188e7e5e 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -20,6 +20,7 @@ REDMINE_SUPPORTED_SCM = %w( Subversion Darcs Mercurial Cvs Bazaar Git Filesystem Redmine::AccessControl.map do |map| map.permission :view_project, {:projects => [:show, :activity]}, :public => true map.permission :search_project, {:search => :index}, :public => true + map.permission :add_project, {:projects => :add}, :require => :loggedin map.permission :edit_project, {:projects => [:settings, :edit]}, :require => :member map.permission :select_project_modules, {:projects => :modules}, :require => :member map.permission :manage_members, {:projects => :settings, :members => [:new, :edit, :destroy, :autocomplete_for_member_login]}, :require => :member |