diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-07 11:40:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-07 11:40:48 +0000 |
commit | 34a933a5806719b09743a6177f418f6384c9ee4c (patch) | |
tree | d5fc216a47a63c8dedffe4b3ffffc1b86f53e506 /app/models/user.rb | |
parent | 3deb70d4aab992c00b5048630033d6614aea97c1 (diff) | |
download | redmine-34a933a5806719b09743a6177f418f6384c9ee4c.tar.gz redmine-34a933a5806719b09743a6177f418f6384c9ee4c.zip |
Reset #roles on reload (#23519).
git-svn-id: http://svn.redmine.org/redmine/trunk@16154 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 53e0ab4d5..24fd47464 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -162,6 +162,7 @@ class User < Principal alias :base_reload :reload def reload(*args) @name = nil + @roles = nil @projects_by_role = nil @project_ids_by_role = nil @membership_by_project_id = nil |