From fb1a2fd7cd4ca7335d660265a32604f6e2006dd6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 15 Jan 2012 14:23:06 +0000 Subject: 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 --- lib/redmine.rb | 2 +- lib/tasks/testing.rake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3