Feature #1543 » default_data_loader.patch
lib/redmine/default_data/loader.rb (working copy) | ||
---|---|---|
50 | 50 |
:position => 2, |
51 | 51 |
:permissions => [:manage_versions, |
52 | 52 |
:manage_categories, |
53 |
:view_activity, |
|
53 | 54 |
:view_issues, |
54 | 55 |
:add_issues, |
55 | 56 |
:edit_issues, |
... | ... | |
80 | 81 | |
81 | 82 |
reporter = Role.create! :name => l(:default_role_reporter), |
82 | 83 |
:position => 3, |
83 |
:permissions => [:view_issues, |
|
84 |
:permissions => [:view_activity, |
|
85 |
:view_issues, |
|
84 | 86 |
:add_issues, |
85 | 87 |
:add_issue_notes, |
86 | 88 |
:save_queries, |
... | ... | |
98 | 100 |
:browse_repository, |
99 | 101 |
:view_changesets] |
100 | 102 | |
101 |
Role.non_member.update_attribute :permissions, [:view_issues, |
|
103 |
Role.non_member.update_attribute :permissions, [:view_activity, |
|
104 |
:view_issues, |
|
102 | 105 |
:add_issues, |
103 | 106 |
:add_issue_notes, |
104 | 107 |
:save_queries, |
... | ... | |
114 | 117 |
:browse_repository, |
115 | 118 |
:view_changesets] |
116 | 119 | |
117 |
Role.anonymous.update_attribute :permissions, [:view_issues, |
|
120 |
Role.anonymous.update_attribute :permissions, [:view_activity, |
|
121 |
:view_issues, |
|
118 | 122 |
:view_gantt, |
119 | 123 |
:view_calendar, |
120 | 124 |
:view_time_entries, |