]> source.dussan.org Git - redmine.git/commitdiff
Reset #roles on reload (#23519).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jan 2017 11:40:48 +0000 (11:40 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Jan 2017 11:40:48 +0000 (11:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16154 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/user.rb

index 53e0ab4d5bfe2a73fb1378c96c95c283141ee0d3..24fd47464cb6e223c383c62c2a583b2f39199503 100644 (file)
@@ -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