Commit Graph

19 Commits

Author SHA1 Message Date
Marius Balteanu
f29c22157d Fix typo (#39110).
Patch by Mizuki ISHIKAWA.

git-svn-id: https://svn.redmine.org/redmine/trunk@22494 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-04 06:18:21 +00:00
Marius Balteanu
8a1bff856f Add missing copyrights (#37730).
Patch by Karel Pičman.

git-svn-id: https://svn.redmine.org/redmine/trunk@22482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-26 14:07:17 +00:00
Marius Balteanu
fd3843d821 Replace request_store with ActiveSupport::CurrentAttributes (#39110).
Patch by Takashi Kato.

git-svn-id: https://svn.redmine.org/redmine/trunk@22473 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-11-21 06:45:54 +00:00
Go MAEDA
357fa10bbd Fix "DEPRECATION WARNING: Calling '<<' to an ActiveModel::Errors message array in order to add an error is deprecated." (#29914, #34985).
git-svn-id: http://svn.redmine.org/redmine/trunk@20898 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 15:41:07 +00:00
Toshi MARUYAMA
fd30592dd3 remove extra blank lines from lib/redmine/sudo_mode.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20070 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-24 16:06:24 +00:00
Toshi MARUYAMA
0bee73f299 remove spaces inside {} of lib/redmine/sudo_mode.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-11 01:21:11 +00:00
Toshi MARUYAMA
8c4ddc0da9 cleanup: rubocop: fix Layout/EmptyLinesAroundModuleBody in lib/redmine/sudo_mode.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19134 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 12:45:34 +00:00
Go MAEDA
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Jean-Philippe Lang
d74f0bfd5c Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
Toshi MARUYAMA
6139e0033a spelling fixes (#25495)
git-svn-id: http://svn.redmine.org/redmine/trunk@16445 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-02 03:34:44 +00:00
Jean-Philippe Lang
d744749d5e Sudo-Mode refinements (#23587).
Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@15813 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-09-03 07:37:16 +00:00
Jean-Philippe Lang
5e93459128 Use .around_action instead of .around_filter.
git-svn-id: http://svn.redmine.org/redmine/trunk@15658 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 07:35:27 +00:00
Jean-Philippe Lang
ee82a55602 Use .before_action instead of .before_filter.
git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 07:27:31 +00:00
Jean-Philippe Lang
752c414e8a Set a default timeout value (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14354 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 22:23:42 +00:00
Jean-Philippe Lang
b895f6434d Make the sudo timeout configurable (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14353 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 21:17:52 +00:00
Jean-Philippe Lang
c2fca37999 Don't use SudoMode.disable! to skip API requests (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14338 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 19:51:24 +00:00
Jean-Philippe Lang
e12322dac3 Adds a configuration setting to enable sudo mode, disabled by default (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 19:42:49 +00:00
Jean-Philippe Lang
d6f389658b Require password re-entry for sensitive actions (#19851).
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@14333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 18:41:10 +00:00