summaryrefslogtreecommitdiffstats
path: root/app/models/member_role.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-26 16:14:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-26 16:14:55 +0000
commit04455783a76e1a34e35c575fe3e7839bc1aa0609 (patch)
treea670bc732a93dd8a7014b5447b8a3b17abb20ee8 /app/models/member_role.rb
parentc36c924714cbbbf88f825b1513a0d22a3b513332 (diff)
downloadredmine-04455783a76e1a34e35c575fe3e7839bc1aa0609.tar.gz
redmine-04455783a76e1a34e35c575fe3e7839bc1aa0609.zip
Fixed: project copy doesn't copy group memberships (#3975).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3250 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/member_role.rb')
-rw-r--r--app/models/member_role.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/member_role.rb b/app/models/member_role.rb
index 286659fc3..9c28d413d 100644
--- a/app/models/member_role.rb
+++ b/app/models/member_role.rb
@@ -30,6 +30,10 @@ class MemberRole < ActiveRecord::Base
errors.add :role_id, :invalid if role && !role.member?
end
+ def inherited?
+ !inherited_from.nil?
+ end
+
private
def remove_member_if_empty