Revision 442:753f1380d6bc lib/redmine/default_data/.svn/text-base
| lib/redmine/default_data/.svn/text-base/loader.rb.svn-base | ||
|---|---|---|
| 1 |
# redMine - project management software
|
|
| 2 |
# Copyright (C) 2006-2007 Jean-Philippe Lang
|
|
| 1 |
# Redmine - project management software
|
|
| 2 |
# Copyright (C) 2006-2011 Jean-Philippe Lang
|
|
| 3 | 3 |
# |
| 4 | 4 |
# This program is free software; you can redistribute it and/or |
| 5 | 5 |
# modify it under the terms of the GNU General Public License |
| ... | ... | |
| 41 | 41 |
Role.transaction do |
| 42 | 42 |
# Roles |
| 43 | 43 |
manager = Role.create! :name => l(:default_role_manager), |
| 44 |
:issues_visibility => 'all', |
|
| 44 | 45 |
:position => 1 |
| 45 | 46 |
manager.permissions = manager.setable_permissions.collect {|p| p.name}
|
| 46 | 47 |
manager.save! |
Also available in: Unified diff