summaryrefslogtreecommitdiffstats
path: root/app/models/role.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use ApplicationRecord instead of ActiveRecord::Base (#38975).Marius Balteanu2024-01-231-1/+1
| | | | | | Patch by Minoru Maeda (@maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/HashEachMethods (#39887).Go MAEDA2023-12-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22532 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates Rails to 7.1.2 (#36320).Marius Balteanu2023-11-271-1/+1
| | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* <=> operator should return nil when invoked with an incomparable object ↵Go MAEDA2023-06-291-7/+7
| | | | | | | | | (#38772). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22269 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ensure that the base permission is set for Role#permissions_tracker? and ↵Go MAEDA2023-01-191-0/+4
| | | | | | | | | related (#38070). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22063 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ruby 2.7: Fix RuboCop offense Performance/MapCompact (#38134).Go MAEDA2023-01-171-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add default spent time activity per role (#29286).Go MAEDA2022-08-091-1/+4
| | | | | | | Patch by Marius BALTEANU and Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21763 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add habtm relation between roles and queries_roles (#36416).Marius Balteanu2022-02-281-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21444 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | sensitive comparison in Rails 6.1. (#29914, #32897). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20880 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ActiveRecord scope lambda of app/models/role.rbToshi MARUYAMA2020-11-121-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20345 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/role.rbToshi MARUYAMA2020-11-101-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20324 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at app/models/role.rbToshi MARUYAMA2020-11-081-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20298 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to app/models/role.rbToshi MARUYAMA2020-11-051-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20260 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of app/models/role.rbToshi MARUYAMA2020-09-261-11/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20089 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r19478 (#32897).Go MAEDA2020-01-301-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2020-01-281-1/+1
| | | | | | | | | sensitive comparison in Rails 6.1.' (#32897). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19478 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in app/models/role.rbToshi MARUYAMA2019-11-081-8/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up app/models/role.rbToshi MARUYAMA2019-10-221-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18830 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/AccessModifierIndentation in ↵Toshi MARUYAMA2019-10-221-1/+1
| | | | | | app/models/role.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18829 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/WhenThen in app/models/role.rbToshi MARUYAMA2019-10-171-3/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18724 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix Role#find_or_create_system_role is not privateToshi MARUYAMA2019-10-161-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18693 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Increase maximum size for role name (#27625).Jean-Philippe Lang2019-06-201-1/+1
| | | | | | Patch by Aleksandar Pavic. git-svn-id: http://svn.redmine.org/redmine/trunk@18296 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use find_by instead of where.first to remove unnecessary sorting (#26747).Go MAEDA2018-10-061-1/+1
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17586 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes deprecated methods.Jean-Philippe Lang2017-07-231-6/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16871 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use regular instance methods instead of association extensions.Jean-Philippe Lang2017-06-031-1/+6
| | | | | | Rails 5.1 seems to mess things up in this particular case (role.workflow_rules.copy calls the extension declare in Tracker model). git-svn-id: http://svn.redmine.org/redmine/trunk@16597 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white space from app/models/role.rbToshi MARUYAMA2016-12-141-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16074 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use .unscoped when querying and creating builtin objects (#24156).Jean-Philippe Lang2016-12-031-2/+2
| | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@16049 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role#copy_from should copy managed roles.Jean-Philippe Lang2016-10-201-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15913 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that r15668 prevents from setting managed roles.Jean-Philippe Lang2016-10-201-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15912 e93f8b46-1217-0410-a6f0-8f06a7374b81
* 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