Jean-Philippe Lang
c55dd52b07
Handle admin and login with safe_attributes.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15663 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 11:56:39 +00:00
Jean-Philippe Lang
26c5459de7
Don't pass conditions to #delete_all.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15662 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 11:21:16 +00:00
Jean-Philippe Lang
d2f7e31951
Use .distinct instead of .uniq.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15654 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 07:15:13 +00:00
Jean-Philippe Lang
f2a5804f4e
Simplify User#today ( #22320 ).
...
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@15383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-07 11:06:22 +00:00
Jean-Philippe Lang
ed50d42210
Replace Date.today with User.current.today ( #22320 ).
...
Depending on the offset between a user's configured timezone and the server
timezone, Date.today may be more or less often wrong from the user's
perspective, leading to things like issues marked as overdue too early or too
late, or yesterday / tomorrow being displayed / selected where 'today' is
intended.
A test case illustrating the problem with Issue#overdue? is included
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@15379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-07 10:42:22 +00:00
Jean-Philippe Lang
97a647c1e5
Validate status of users and groups.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15320 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-11 17:51:16 +00:00
Jean-Philippe Lang
46a4151f09
Send a single email to admins like other notifications ( #21421 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15266 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-20 07:23:33 +00:00
Jean-Philippe Lang
4aef2735c8
Send a security notification when users gain or loose admin ( #21421 ).
...
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@15265 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-20 07:09:20 +00:00
Jean-Philippe Lang
cda9c63d9c
Updates copyright for 2016.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
5d70fce6ce
Security notifications when password or email adress is changed ( #21421 ).
...
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@15145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-02-05 07:33:24 +00:00
Jean-Philippe Lang
7005de51c5
Additional option for USER_FORMAT, #{lastname}#{firstname} without any sperator ( #3551 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@15133 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-30 15:25:11 +00:00
Jean-Philippe Lang
97751b3d84
Performance in User#roles_for_project ( #21582 ).
...
Patch by by Ondřej Ezr.
git-svn-id: http://svn.redmine.org/redmine/trunk@15060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-16 07:50:20 +00:00
Jean-Philippe Lang
4cd22dcc55
Keep track of valid user sessions ( #21058 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14735 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-24 10:15:22 +00:00
Jean-Philippe Lang
11bce09825
Typo "coma" ( #20551 ).
...
Patch by budo kaiman.
git-svn-id: http://svn.redmine.org/redmine/trunk@14712 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-20 18:26:28 +00:00
Jean-Philippe Lang
141c83bdc7
WARNING: Can't mass-assign protected attributes for User ( #20490 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14550 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-12 11:11:40 +00:00
Jean-Philippe Lang
ba61b13008
Prevent roles loading on each call to User#managed_roles for admins.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14328 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-17 18:36:38 +00:00
Jean-Philippe Lang
ed9f00178c
Ability to limit member management to certain roles ( #19707 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14293 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-05-31 07:16:23 +00:00
Jean-Philippe Lang
b688214ce0
Column 'address' in where clause may be ambiguous ( #19485 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14284 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-05-30 08:23:03 +00:00
Jean-Philippe Lang
6659aad3ef
Adds a role setting that viewing all or own time entries ( #8929 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14275 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-05-30 07:40:57 +00:00
Jean-Philippe Lang
738ecf1365
Test broken by r14265 ( #19458 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14266 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-05-10 12:57:16 +00:00
Jean-Philippe Lang
c8fb0956d1
Code cleanup ( #19458 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14265 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-05-10 10:30:10 +00:00
Jean-Philippe Lang
51f7060aa8
Add the ability to expire passwords after a configurable number of days ( #19458 ).
...
Patch by Holger Just and Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@14264 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-05-10 10:26:55 +00:00
Jean-Philippe Lang
76e7025f07
Workaround for timestamps rounding issues with Rails4.2 and mysql5.7 that may kill user session after password is changed ( #17460 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-15 09:09:35 +00:00
Jean-Philippe Lang
e3618bdbec
Add support for multiple email addresses per user ( #4244 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 14:14:12 +00:00
Jean-Philippe Lang
000124f44f
Copyright update.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-11 09:09:50 +00:00
Jean-Philippe Lang
827ab38725
Selected projects in email notifications on "my account" are lost when the page is redisplayed after a validation error ( #18060 ).
...
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@13638 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-22 10:56:59 +00:00
Jean-Philippe Lang
bdd3ccf8e5
Adds a role setting for controlling visibility of users: all or members of visible projects ( #11724 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13584 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-11 13:08:52 +00:00
Jean-Philippe Lang
67c4936908
Restores commits reverted when rails-4.1 branch was merged ( #18174 ).
...
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@13504 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-24 18:41:35 +00:00
Jean-Philippe Lang
c2e73160da
Adds a single controller for users and groups memberships and support for adding multiple projects at once ( #11702 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13498 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-23 21:46:40 +00:00
Jean-Philippe Lang
2d1866d966
Merged rails-4.1 branch ( #14534 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 17:37:16 +00:00
Jean-Philippe Lang
7e7ac5340a
Adds buit-in groups to give specific permissions to anonymous and non members users per project ( #17976 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13417 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-09-28 14:51:08 +00:00
Jean-Baptiste Barth
b519aba63e
Expire other sessions on password change ( #17796 ).
...
Contributed by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@13412 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-09-16 21:38:54 +00:00
Jean-Philippe Lang
5ccbe10d10
Code cleanup ( #17717 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13403 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-09-14 11:38:52 +00:00
Jean-Baptiste Barth
2eb95f41b4
Invalidate security tokens on password or email changes ( #17717 ).
...
Contributed by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@13396 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-09-14 08:22:25 +00:00
Jean-Baptiste Barth
d00f875800
Make 2nd parameter optional in User#allowed_to_globally? for consistency ( #6498 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13364 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-09-06 03:39:52 +00:00
Toshi MARUYAMA
c2e75254b7
remove trailing white-spaces from app/models/user.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13287 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-07-11 08:04:52 +00:00
Toshi MARUYAMA
a599442d05
introduce request_store to ensure that the current user doesn't leak across request boundaries ( #16685 )
...
Contributed by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@13110 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-05-01 00:44:01 +00:00
Jean-Philippe Lang
8405d57516
Strip invalid UTF-8 bytes in User#find_by_login ( #16107 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12916 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-22 12:50:56 +00:00
Toshi MARUYAMA
35cc911192
update copyright year ( #15977 )
...
Contributed by Daniel Felix.
git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-29 22:45:39 +00:00
Toshi MARUYAMA
ea8febad03
remove unneeded Relation#all from Principal model
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12731 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-27 02:19:03 +00:00
Jean-Philippe Lang
e391be4086
Adds settings for disabling browser language detection and language preference ( #2691 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12691 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-24 10:28:12 +00:00
Jean-Philippe Lang
6e6c6fac5c
Adds firstname initials+lastname user format.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12690 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-24 09:23:11 +00:00
Toshi MARUYAMA
ecda4d33e8
Rails4: replace deprecated Relation#update_all at User model
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12544 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-09 02:37:06 +00:00
Toshi MARUYAMA
2b36ff7016
Rails4: replace deprecated Relation#update_all at User model
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12524 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-08 06:58:33 +00:00
Toshi MARUYAMA
e9470e5585
explicitly define fix has_and_belongs_to_many join_table at Group and User
...
Rails4 cannot resolve automatically.
git-svn-id: http://svn.redmine.org/redmine/trunk@12471 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-12-27 23:33:15 +00:00
Jean-Philippe Lang
b764e39847
Option to force a user to change his password ( #3872 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12081 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-08-05 17:58:33 +00:00
Jean-Philippe Lang
888c3581eb
Role based custom queries ( #1019 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11994 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-07-11 17:45:10 +00:00
Toshi MARUYAMA
edb6e245cf
gender neutral source comment at app/models/user.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11989 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-07-06 00:04:58 +00:00
Jean-Philippe Lang
2f53246c13
Code cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11967 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-13 19:31:43 +00:00
Jean-Philippe Lang
07d88851bf
Fixed tests broken by r11965.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11966 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-12 21:55:39 +00:00