summaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r2109, r2118, r2130, r2131, r2134, r2135, r2136 and r2139 to r2145 ↵Jean-Philippe Lang2008-12-191-1/+1
| | | | | | from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2146 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r2119 to r2127 from trunk.Jean-Philippe Lang2008-12-141-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2133 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces User.find_active with a named scope.Jean-Philippe Lang2008-11-301-12/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes #2170: user display format in application settings broken by r2010.Jean-Philippe Lang2008-11-131-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2031 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Sort users by their display names so that user dropdown lists are sorted ↵Jean-Philippe Lang2008-11-111-9/+8
| | | | | | alphabetically (#2015). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2010 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Maps repository users to Redmine users (#1383).Jean-Philippe Lang2008-11-101-0/+1
| | | | | | Users with same username or email are automatically mapped. Mapping can be manually adjusted in repository settings. Multiple usernames can be mapped to the same Redmine user. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2006 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Template error when user's timezone isn't set and UTC timestamps are used ↵Jean-Philippe Lang2008-09-111-1/+1
| | | | | | (#1889). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1801 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds cross-project time reports support (#994).Jean-Philippe Lang2008-08-311-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1778 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: invalid SQL query on User#destroy (#1781).Jean-Philippe Lang2008-08-251-1/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed unused exception definition (r1678).Jean-Philippe Lang2008-07-221-2/+0
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1688 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improved on-the-fly account creation. If some attributes are missing (eg. ↵Jean-Philippe Lang2008-07-191-9/+6
| | | | | | not present in the LDAP) or are invalid, the registration form is displayed so that the user is able to fill or fix these attributes. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1678 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds links to the user page on various views.Jean-Philippe Lang2008-07-161-0/+4
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1674 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Custom fields refactoring: most of code moved from controllers to models ↵Jean-Philippe Lang2008-06-271-2/+6
| | | | | | (using new module ActsAsCustomizable). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1592 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow dot in firstnames and lastnames (closes #1426).Jean-Philippe Lang2008-06-171-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1561 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: non member or anonymous permissions change is effective only after an ↵Jean-Philippe Lang2008-05-221-2/+1
| | | | | | application restart (#1280). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1443 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Better error message and AR errors in log for failed LDAP on-the-fly user ↵Jean-Philippe Lang2008-04-131-4/+9
| | | | | | creation (closes #932, #1042). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1345 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Global queries can be saved from the global issue list (follows r1311 and ↵Jean-Philippe Lang2008-03-301-11/+20
| | | | | | closes #897). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1312 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent LDAP authentication with empty password related problems.Jean-Philippe Lang2008-03-121-0/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1231 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a user preference to choose how comments/replies are displayed: in ↵Jean-Philippe Lang2008-03-051-0/+4
| | | | | | chronological or reverse chronological order (#589, #776). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* User display format is now configurable in administration settings.Jean-Philippe Lang2008-01-251-3/+18
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1103 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent 'has already been taken' error messages for user login and email if ↵Jean-Philippe Lang2008-01-061-1/+2
| | | | | | these fields are left empty. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1042 e93f8b46-1217-0410-a6f0-8f06a7374b81
* 'Assigned to' drop down list is now sorted by user's lastname.Jean-Philippe Lang2007-12-011-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@939 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Slight optimization in User#role_for_project.Jean-Philippe Lang2007-11-241-7/+9
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed the 12 characters limit on passwords.Jean-Philippe Lang2007-11-241-2/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@927 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Anonymous users can now be allowed to create, edit, comment issues, comment ↵Jean-Philippe Lang2007-11-201-15/+23
| | | | | | | | news and post messages in the forums. These permissions need to be explicitly given to the Anonymous role (Admin -> Roles & Permissions -> Anonymous). git-svn-id: http://redmine.rubyforge.org/svn/trunk@919 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * Added time zone support: users can select their time zone on their account ↵Jean-Philippe Lang2007-11-191-0/+8
| | | | | | | | | view. * Updated Polish translation (Mariusz Olejnik). * Fixed: Projects should be listed with case mixed. git-svn-id: http://redmine.rubyforge.org/svn/trunk@917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* More flexible mail notifications settings at user level. A user has now 3 ↵Jean-Philippe Lang2007-10-201-0/+17
| | | | | | | | | | options: * notification on any event on all his projects * notification on any event on selected projects only (if the user belongs to more than 1 project) * notification only for things that he watches or he is involded in (eg. issues that he watches or he is author or assignee) git-svn-id: http://redmine.rubyforge.org/svn/trunk@855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added project module concept.Jean-Philippe Lang2007-09-141-0/+5
| | | | | | | | | | A project module (eg. issue tracking, news, wiki,...) is a set of permissions that can enabled/disabled at project level. For each project, modules can be enabled on the project settings view ('Modules' tab). This requires a specific permission: 'Select project modules' (if this permission is turned off, only Redmine administrators can choose which modules a project uses). When applying this migration, all modules are enabled for all existing projects. git-svn-id: http://redmine.rubyforge.org/svn/trunk@725 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged 0.6 branch into trunk.Jean-Philippe Lang2007-08-291-15/+68
| | | | | | | | | Permissions management was rewritten. Some permissions can now be specifically defined for non member and anonymous users. This migration: * is irreversible (please, don't forget to *backup* your database before upgrading) * resets role's permissions (go to "Admin -> Roles & Permissions" to set them after upgrading) git-svn-id: http://redmine.rubyforge.org/svn/trunk@674 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed User#display_name (replaced by User#name).Jean-Philippe Lang2007-06-291-5/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@578 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Each category can now be associated to a user, so that new issues in that ↵Jean-Philippe Lang2007-06-291-0/+1
| | | | | | category are automatically assigned to that user. git-svn-id: http://redmine.rubyforge.org/svn/trunk@577 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added per user custom queries.Jean-Philippe Lang2007-06-231-0/+7
| | | | | | | | Any logged in user can now save queries (they are not visible to the other users). Only users with explicit permission can manage queries that are visible to anyone. The queries list is removed from the "Reports" view. It can now be accessed from the issues list. git-svn-id: http://redmine.rubyforge.org/svn/trunk@566 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added the ability to archive projects:Jean-Philippe Lang2007-05-271-1/+1
| | | | | | | | | * Only administrators can archive/unarchive projects. * Once archived, the project is visible on the admin project listing only. It doesn't show up anywhere else in the app. Subprojects are also archived. * Archive/unarchive preserve everything on the project (issues, members, ...). * A subproject can not be unarchived if its parent project is archived. git-svn-id: http://redmine.rubyforge.org/svn/trunk@549 e93f8b46-1217-0410-a6f0-8f06a7374b81
* User's projects alphabetically sorted in the Projects drop down menu.Jean-Philippe Lang2007-05-231-6/+6
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@538 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added autologin feature (disabled by default).Jean-Philippe Lang2007-05-061-0/+5
| | | | | | | To enable this feature, go to administration settings and choose a duration for autologin. When enabled, a checkbox on the login form lets users activate autologin. git-svn-id: http://redmine.rubyforge.org/svn/trunk@514 e93f8b46-1217-0410-a6f0-8f06a7374b81
* User#<=> modified to sort on firstname if same lastnameJean-Philippe Lang2007-04-121-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@446 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Various changes on views. On project summary, members are now grouped by ↵Jean-Philippe Lang2007-04-081-1/+5
| | | | | | role and subprojects are listed inline. git-svn-id: http://redmine.rubyforge.org/svn/trunk@434 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed User role_for_project methodJean-Philippe Lang2007-04-041-1/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Various code cleaning, mainly on User, Permission and IssueStatus models.Jean-Philippe Lang2007-04-041-8/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@414 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added some attributes length validations.Jean-Philippe Lang2007-04-021-1/+4
| | | | | | Also added some information about attribute length constraints on forms. git-svn-id: http://redmine.rubyforge.org/svn/trunk@400 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added rss/atom feeds at project levels for:Jean-Philippe Lang2007-03-171-0/+10
| | | | | | | | | | * news * new issues reported * details of issue changes issue cutom queries can be used as feeds git-svn-id: http://redmine.rubyforge.org/svn/trunk@339 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added svn:eol-style native property on /app filesJean-Philippe Lang2007-03-121-140/+140
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* only active users are now proposed when adding a member to a projectJean-Philippe Lang2007-01-261-1/+13
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@190 e93f8b46-1217-0410-a6f0-8f06a7374b81
* settings are now stored in the database (config_custom.rb no more used) and ↵Jean-Philippe Lang2007-01-211-2/+2
| | | | | | editable through the application in: Admin -> Settings git-svn-id: http://redmine.rubyforge.org/svn/trunk@167 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replaced deprecated ":dependent => true" statementsJean-Philippe Lang2006-12-261-3/+3
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@123 e93f8b46-1217-0410-a6f0-8f06a7374b81
* various modifications to prevent xssJean-Philippe Lang2006-12-171-1/+2
| | | | | | | - validation of names and labels against /^[\w\s\'\-]*$/i - html entities encoding git-svn-id: http://redmine.rubyforge.org/svn/trunk@99 e93f8b46-1217-0410-a6f0-8f06a7374b81
* trunk moved from /trunk/redmine to /trunkJean-Philippe Lang2006-12-051-0/+129
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81