summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-06-03 00:48:11 +0000
committerGo MAEDA <maeda@farend.jp>2018-06-03 00:48:11 +0000
commit795bdb9ee57c4ec75bf37dcec20bddeba5a258cf (patch)
treebae85c24888a2cd9d1fc0187503f4c083ddf55a2 /lib/redmine.rb
parent3b36a1322544a2763b85075acef17d1c52bf4314 (diff)
downloadredmine-795bdb9ee57c4ec75bf37dcec20bddeba5a258cf.tar.gz
redmine-795bdb9ee57c4ec75bf37dcec20bddeba5a258cf.zip
Fix: Irrelevant permission is required to access some tabs in project settings page (#28693).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 1937ba8ee..6e7d10974 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -125,7 +125,7 @@ Redmine::AccessControl.map do |map|
map.permission :log_time, {:timelog => [:new, :create]}, :require => :loggedin
map.permission :edit_time_entries, {:timelog => [:edit, :update, :destroy, :bulk_edit, :bulk_update]}, :require => :member
map.permission :edit_own_time_entries, {:timelog => [:edit, :update, :destroy,:bulk_edit, :bulk_update]}, :require => :loggedin
- map.permission :manage_project_activities, {:project_enumerations => [:update, :destroy]}, :require => :member
+ map.permission :manage_project_activities, {:projects => :settings, :project_enumerations => [:update, :destroy]}, :require => :member
end
map.project_module :news do |map|
@@ -163,7 +163,7 @@ Redmine::AccessControl.map do |map|
map.permission :browse_repository, {:repositories => [:show, :browse, :entry, :raw, :annotate, :changes, :diff, :stats, :graph]}, :read => true
map.permission :commit_access, {}
map.permission :manage_related_issues, {:repositories => [:add_related_issue, :remove_related_issue]}
- map.permission :manage_repository, {:repositories => [:new, :create, :edit, :update, :committers, :destroy]}, :require => :member
+ map.permission :manage_repository, {:projects => :settings, :repositories => [:new, :create, :edit, :update, :committers, :destroy]}, :require => :member
end
map.project_module :boards do |map|
@@ -173,7 +173,7 @@ Redmine::AccessControl.map do |map|
map.permission :edit_own_messages, {:messages => :edit, :attachments => :upload}, :require => :loggedin
map.permission :delete_messages, {:messages => :destroy}, :require => :member
map.permission :delete_own_messages, {:messages => :destroy}, :require => :loggedin
- map.permission :manage_boards, {:boards => [:new, :create, :edit, :update, :destroy]}, :require => :member
+ map.permission :manage_boards, {:projects => :settings, :boards => [:new, :create, :edit, :update, :destroy]}, :require => :member
end
map.project_module :calendar do |map|