summaryrefslogtreecommitdiff
path: root/app/models/member.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/member.rb')
-rw-r--r--app/models/member.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index c1b6a6b11fe..45af34a3e6b 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -448,6 +448,14 @@ class Member < ApplicationRecord
errors.add(:user, error) if error
end
+ def signup_email_invalid_message
+ if source_type == 'Project'
+ _("is not allowed for this project.")
+ else
+ _("is not allowed for this group.")
+ end
+ end
+
def update_highest_role?
return unless user_id.present?