summaryrefslogtreecommitdiffstats
path: root/app/models/role.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use safe_attributes.Jean-Philippe Lang2016-07-161-0/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15668 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Assignable users should not include users that cannot view the tracker (#23172).Jean-Philippe Lang2016-06-281-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15586 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Limit trackers for new issue to certain roles (#7839).Jean-Philippe Lang2016-06-051-0/+51
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15464 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces acts_as_list with an implementation that handles #position= (#12909).Jean-Philippe Lang2016-04-171-3/+3
| | | | | | Objects are reordered using the regular attribute writer #position= and AR callbacks. git-svn-id: http://svn.redmine.org/redmine/trunk@15335 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to limit member management to certain roles (#19707).Jean-Philippe Lang2015-05-311-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14293 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a role setting that viewing all or own time entries (#8929).Jean-Philippe Lang2015-05-301-0/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14275 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Skip validation if attribute did not change.Jean-Philippe Lang2015-01-071-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13851 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaced "can't" with "cannot" in error messages.Jean-Philippe Lang2014-12-211-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13781 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't consider roles without issue add/edit permissions for determining ↵Jean-Philippe Lang2014-12-131-0/+4
| | | | | | fields permissions (#15988). git-svn-id: http://svn.redmine.org/redmine/trunk@13747 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a role setting for controlling visibility of users: all or members of ↵Jean-Philippe Lang2014-11-111-0/+8
| | | | | | visible projects (#11724). git-svn-id: http://svn.redmine.org/redmine/trunk@13584 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Order scopes cleanup.Jean-Philippe Lang2014-10-291-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13526 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role-based issue custom field visibility (#5037).Jean-Philippe Lang2013-07-131-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-space from app/models/role.rbToshi MARUYAMA2013-04-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11715 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use lambda form in model scopes (#12499)Jean-Baptiste Barth2012-12-071-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10949 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Anonymous users should always see public issues only (#11872).Jean-Philippe Lang2012-09-201-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10437 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Create role by copy (#9258).Jean-Philippe Lang2012-09-031-0/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10285 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Workflow enhancement: editable and required fields configurable by role, ↵Jean-Philippe Lang2012-07-151-2/+2
| | | | | | tracker and status (#703, #3521). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Perf: use a custom decoder for Role#permissions instead of YAML.load.Jean-Philippe Lang2012-07-051-5/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9916 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-05-251-7/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9715 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* model: replace Rails2 "named_scope" to Rails3 "scope"Toshi MARUYAMA2012-04-261-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9537 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-3.2 branch.Jean-Philippe Lang2012-04-251-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Restores migration broken by r8182 and removes default scope on Role (#9800).Jean-Philippe Lang2011-12-141-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8213 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Resourcified roles.Jean-Philippe Lang2011-12-091-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8145 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/role.rb.Toshi MARUYAMA2011-08-311-20/+20
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6857 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor builtin roles creation.Jean-Philippe Lang2011-07-201-17/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6299 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Private issues (#7414).Jean-Philippe Lang2011-04-151-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5466 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an issues visibility level on roles (#7412).Jean-Philippe Lang2011-04-111-1/+9
| | | | | | It can be set so that users only see their own issues (created or assigned). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Localize anonymous and non member roles names (#8072).Jean-Philippe Lang2011-04-051-2/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove the limitation on characters that can be used in custom_field, ↵Jean-Philippe Lang2010-12-311-1/+0
| | | | | | issue_status, role, tracker, user names (#5152). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4599 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change Role#anonymous and #non_member so they generate the record as needed.Eric Davis2010-02-031-4/+20
| | | | | | | | While creating tests, it was a common occurrence to lost the builtin roles because they are only created in the migrations. This makes them behave like User#anonymous. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3363 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds workflow copy functionality (#1727).Jean-Philippe Lang2009-12-121-8/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3154 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a setting to choose which role is given to a non-admin user who creates ↵Jean-Philippe Lang2009-05-171-0/+1
| | | | | | a project (#1007). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2754 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allows multiple roles on the same project (#706). Prerequisite for user ↵Jean-Philippe Lang2009-05-101-2/+7
| | | | | | groups feature. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes hardcoded table names (#2701).Jean-Philippe Lang2009-02-091-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2424 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a permission 'view wiki edits' so that wiki history can be hidden to ↵Jean-Philippe Lang2008-09-131-0/+5
| | | | | | | | certain users (#1154). A migration automatically adds this permission to roles that were allowed to view wiki pages. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1815 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged nbc branch @ r1812 (commit access permission and reposman improvements).Jean-Philippe Lang2008-09-131-2/+25
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1814 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Workflow copy:Jean-Philippe Lang2008-03-151-1/+12
| | | | | | | * added the ability the copy an existing workflow when creating a new role (closes #841) * use a single raw insert statement to copy tracker/role workflow rather than instantiating hundreds/thousands of objects git-svn-id: http://redmine.rubyforge.org/svn/trunk@1252 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged 0.6 branch into trunk.Jean-Philippe Lang2007-08-291-4/+74
| | | | | | | | | 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
* Added several validates_length_ofJean-Philippe Lang2007-07-161-0/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@593 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Various changes on views. On project summary, members are now grouped by ↵Jean-Philippe Lang2007-04-081-0/+4
| | | | | | role and subprojects are listed inline. git-svn-id: http://redmine.rubyforge.org/svn/trunk@434 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added svn:eol-style native property on /app filesJean-Philippe Lang2007-03-121-31/+31
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added the ability to set the sort order for rolesJean-Philippe Lang2007-01-311-0/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@208 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replaced deprecated ":dependent => true" statementsJean-Philippe Lang2006-12-261-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@123 e93f8b46-1217-0410-a6f0-8f06a7374b81
* various modifications to prevent xssJean-Philippe Lang2006-12-171-0/+1
| | | | | | | - 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