diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-15 14:23:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-15 14:23:06 +0000 |
commit | fb1a2fd7cd4ca7335d660265a32604f6e2006dd6 (patch) | |
tree | 444bf09c5a63e91cc314de7c7e9fd78f93d1ff09 /lib | |
parent | 6f462d373f1b57657082f22f882942d41df47a39 (diff) | |
download | redmine-fb1a2fd7cd4ca7335d660265a32604f6e2006dd6.tar.gz redmine-fb1a2fd7cd4ca7335d660265a32604f6e2006dd6.zip |
Resourcified repositories for CRUD operations to prepare for multiple SCM per project (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8648 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine.rb | 2 | ||||
-rw-r--r-- | lib/tasks/testing.rake | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index b33b5847c..b43a53b71 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -124,7 +124,7 @@ Redmine::AccessControl.map do |map| end map.project_module :repository do |map| - map.permission :manage_repository, {:repositories => [:edit, :committers, :destroy]}, :require => :member + map.permission :manage_repository, {:repositories => [:new, :create, :edit, :update, :committers, :destroy]}, :require => :member map.permission :browse_repository, :repositories => [:show, :browse, :entry, :annotate, :changes, :diff, :stats, :graph] map.permission :view_changesets, :repositories => [:show, :revisions, :revision] map.permission :commit_access, {} diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 933962e10..3d64c6035 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -51,8 +51,8 @@ namespace :test do (supported_scms - [:subversion, :mercurial]).each do |scm| desc "Creates a test #{scm} repository" task scm => :create_dir do - # system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test" - system "tar -xvz -C tmp/test -f test/fixtures/repositories/#{scm}_repository.tar.gz" + system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test" + #system "tar -xvz -C tmp/test -f test/fixtures/repositories/#{scm}_repository.tar.gz" end end |