From 26528d10048ab2f0ca62436486343ab01d3e35a1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 5 Oct 2007 20:08:46 +0000 Subject: [PATCH] 'Manage repository' permission requires to be a project member. git-svn-id: http://redmine.rubyforge.org/svn/trunk@807 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine.rb b/lib/redmine.rb index 196bd019f..7217abe16 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -73,7 +73,7 @@ Redmine::AccessControl.map do |map| end map.project_module :repository do |map| - map.permission :manage_repository, :repositories => [:edit, :destroy] + map.permission :manage_repository, {:repositories => [:edit, :destroy]}, :require => :member map.permission :browse_repository, :repositories => [:show, :browse, :entry, :changes, :diff, :stats, :graph] map.permission :view_changesets, :repositories => [:show, :revisions, :revision] end