Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Greenlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arbeitsgruppe Hardwarenahe IT-Systeme
Greenlight
Commits
de1e75fb
Unverified
Commit
de1e75fb
authored
May 23, 2019
by
farhatahmad
Committed by
GitHub
May 23, 2019
Browse files
Options
Downloads
Patches
Plain Diff
Added check to emailer concern (#550)
parent
190fc57f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/concerns/emailer.rb
+8
-0
8 additions, 0 deletions
app/controllers/concerns/emailer.rb
with
8 additions
and
0 deletions
app/controllers/concerns/emailer.rb
+
8
−
0
View file @
de1e75fb
...
...
@@ -36,10 +36,14 @@ module Emailer
end
def
send_user_promoted_email
(
user
)
return
unless
Rails
.
configuration
.
enable_email_verification
UserMailer
.
user_promoted
(
user
,
root_url
,
logo_image
,
user_color
).
deliver_now
end
def
send_user_demoted_email
(
user
)
return
unless
Rails
.
configuration
.
enable_email_verification
UserMailer
.
user_demoted
(
user
,
root_url
,
logo_image
,
user_color
).
deliver_now
end
...
...
@@ -58,10 +62,14 @@ module Emailer
end
def
send_approval_user_signup_email
(
user
)
return
unless
Rails
.
configuration
.
enable_email_verification
UserMailer
.
approval_user_signup
(
user
,
admins_url
,
logo_image
,
user_color
,
admin_emails
).
deliver_now
end
def
send_invite_user_signup_email
(
user
)
return
unless
Rails
.
configuration
.
enable_email_verification
UserMailer
.
invite_user_signup
(
user
,
admins_url
,
logo_image
,
user_color
,
admin_emails
).
deliver_now
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment