Feature #44052 ยป 0001-Enable-sudo-mode-by-default.patch
| config/configuration.yml.example | ||
|---|---|---|
| 164 | 164 | |
| 165 | 165 |
# Requires users to re-enter their password for sensitive actions (editing |
| 166 | 166 |
# of account data, project memberships, application settings, user, group, |
| 167 |
# role, auth source management and project deletion). Disabled by default.
|
|
| 168 |
# Timeout is set in minutes. |
|
| 167 |
# role, auth source management and project deletion). Enabled by default,
|
|
| 168 |
# set to false to disable. Timeout is set in minutes.
|
|
| 169 | 169 |
# |
| 170 |
#sudo_mode: true
|
|
| 170 |
#sudo_mode: false
|
|
| 171 | 171 |
#sudo_mode_timeout: 15 |
| 172 | 172 | |
| 173 | 173 |
# Absolute path (e.g. /usr/bin/convert, c:/im/convert.exe) to |
| lib/redmine/configuration.rb | ||
|---|---|---|
| 26 | 26 |
'avatar_server_url' => 'https://www.gravatar.com', |
| 27 | 27 |
'email_delivery' => nil, |
| 28 | 28 |
'max_concurrent_ajax_uploads' => 2, |
| 29 |
'sudo_mode' => true, |
|
| 29 | 30 |
'common_mark_enable_hardbreaks' => true, |
| 30 | 31 |
'thumbnails_generation_timeout' => 10, |
| 31 | 32 |
'markdownized_preview_generation_timeout' => 10, |
| test/unit/lib/redmine/configuration_test.rb | ||
|---|---|---|
| 26 | 26 | |
| 27 | 27 |
def test_empty |
| 28 | 28 |
assert_kind_of Hash, load_conf('empty.yml', 'test')
|
| 29 |
assert_equal true, @conf['sudo_mode'] |
|
| 29 | 30 |
end |
| 30 | 31 | |
| 31 | 32 |
def test_default |