summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-04 13:59:06 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-04 13:59:06 +0000
commit279ae9cd1e1cf8507f2beae7575f390308eaaf91 (patch)
tree5f9c848774e24679113f43aefb9686ba9fa5d9a7 /lib
parentdbefefe789102a5838ad135854a5c56f69c9ddbf (diff)
downloadredmine-279ae9cd1e1cf8507f2beae7575f390308eaaf91.tar.gz
redmine-279ae9cd1e1cf8507f2beae7575f390308eaaf91.zip
fix source indent of lib/redmine/default_data/loader.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20568 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/default_data/loader.rb121
1 files changed, 64 insertions, 57 deletions
diff --git a/lib/redmine/default_data/loader.rb b/lib/redmine/default_data/loader.rb
index f74b04b86..16b289fc7 100644
--- a/lib/redmine/default_data/loader.rb
+++ b/lib/redmine/default_data/loader.rb
@@ -51,63 +51,70 @@ module Redmine
manager.permissions = manager.setable_permissions.collect {|p| p.name}
manager.save!
- developer = Role.create!(
- :name => l(:default_role_developer),
- :position => 2,
- :permissions => [:manage_versions,
- :manage_categories,
- :view_issues,
- :add_issues,
- :edit_issues,
- :view_private_notes,
- :set_notes_private,
- :manage_issue_relations,
- :manage_subtasks,
- :add_issue_notes,
- :save_queries,
- :view_gantt,
- :view_calendar,
- :log_time,
- :view_time_entries,
- :view_news,
- :comment_news,
- :view_documents,
- :view_wiki_pages,
- :view_wiki_edits,
- :edit_wiki_pages,
- :delete_wiki_pages,
- :view_messages,
- :add_messages,
- :edit_own_messages,
- :view_files,
- :manage_files,
- :browse_repository,
- :view_changesets,
- :commit_access,
- :manage_related_issues])
- reporter = Role.create!(
- :name => l(:default_role_reporter),
- :position => 3,
- :permissions => [:view_issues,
- :add_issues,
- :add_issue_notes,
- :save_queries,
- :view_gantt,
- :view_calendar,
- :log_time,
- :view_time_entries,
- :view_news,
- :comment_news,
- :view_documents,
- :view_wiki_pages,
- :view_wiki_edits,
- :view_messages,
- :add_messages,
- :edit_own_messages,
- :view_files,
- :browse_repository,
- :view_changesets])
-
+ developer =
+ Role.create!(
+ :name => l(:default_role_developer),
+ :position => 2,
+ :permissions => [
+ :manage_versions,
+ :manage_categories,
+ :view_issues,
+ :add_issues,
+ :edit_issues,
+ :view_private_notes,
+ :set_notes_private,
+ :manage_issue_relations,
+ :manage_subtasks,
+ :add_issue_notes,
+ :save_queries,
+ :view_gantt,
+ :view_calendar,
+ :log_time,
+ :view_time_entries,
+ :view_news,
+ :comment_news,
+ :view_documents,
+ :view_wiki_pages,
+ :view_wiki_edits,
+ :edit_wiki_pages,
+ :delete_wiki_pages,
+ :view_messages,
+ :add_messages,
+ :edit_own_messages,
+ :view_files,
+ :manage_files,
+ :browse_repository,
+ :view_changesets,
+ :commit_access,
+ :manage_related_issues
+ ]
+ )
+ reporter =
+ Role.create!(
+ :name => l(:default_role_reporter),
+ :position => 3,
+ :permissions => [
+ :view_issues,
+ :add_issues,
+ :add_issue_notes,
+ :save_queries,
+ :view_gantt,
+ :view_calendar,
+ :log_time,
+ :view_time_entries,
+ :view_news,
+ :comment_news,
+ :view_documents,
+ :view_wiki_pages,
+ :view_wiki_edits,
+ :view_messages,
+ :add_messages,
+ :edit_own_messages,
+ :view_files,
+ :browse_repository,
+ :view_changesets
+ ]
+ )
Role.non_member.update_attribute :permissions, [:view_issues,
:add_issues,
:add_issue_notes,