diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-14 12:08:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-14 12:08:47 +0000 |
commit | dfd02040521b84c64e9aa5d7b70ccfa427ffe841 (patch) | |
tree | a10651d01952dbcd83ede78d7a2d4f5a7a0028cd /lib | |
parent | 326ed79b432a3c0172cfbe0eaf801645e7b2e2c6 (diff) | |
download | redmine-dfd02040521b84c64e9aa5d7b70ccfa427ffe841.tar.gz redmine-dfd02040521b84c64e9aa5d7b70ccfa427ffe841.zip |
Add view_issues permission (#3187).
A migration adds this permission to all existing roles to preserve current behaviour.
This permission controls access to issues, roadmap and changelog.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3039 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine.rb | 2 | ||||
-rw-r--r-- | lib/redmine/default_data/loader.rb | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index ebec9060b..1b88ee10f 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -41,7 +41,7 @@ Redmine::AccessControl.map do |map| :issues => [:index, :changes, :show, :context_menu], :versions => [:show, :status_by], :queries => :index, - :reports => :issue_report}, :public => true + :reports => :issue_report} map.permission :add_issues, {:issues => :new} map.permission :edit_issues, {:issues => [:edit, :reply, :bulk_edit]} map.permission :manage_issue_relations, {:issue_relations => [:new, :destroy]} diff --git a/lib/redmine/default_data/loader.rb b/lib/redmine/default_data/loader.rb index 435215b1d..a88466727 100644 --- a/lib/redmine/default_data/loader.rb +++ b/lib/redmine/default_data/loader.rb @@ -49,6 +49,7 @@ module Redmine :position => 2, :permissions => [:manage_versions, :manage_categories, + :view_issues, :add_issues, :edit_issues, :manage_issue_relations, @@ -74,7 +75,8 @@ module Redmine reporter = Role.create! :name => l(:default_role_reporter), :position => 3, - :permissions => [:add_issues, + :permissions => [:view_issues, + :add_issues, :add_issue_notes, :save_queries, :view_gantt, @@ -91,7 +93,8 @@ module Redmine :browse_repository, :view_changesets] - Role.non_member.update_attribute :permissions, [:add_issues, + Role.non_member.update_attribute :permissions, [:view_issues, + :add_issues, :add_issue_notes, :save_queries, :view_gantt, @@ -106,7 +109,8 @@ module Redmine :browse_repository, :view_changesets] - Role.anonymous.update_attribute :permissions, [:view_gantt, + Role.anonymous.update_attribute :permissions, [:view_issues, + :view_gantt, :view_calendar, :view_time_entries, :view_documents, |