diff options
author | James Lopez <james@jameslopez.es> | 2017-06-19 16:35:44 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-06-23 12:41:42 +0300 |
commit | 831b2fccf9a2efc772d62c05f52c612f23a63ea9 (patch) | |
tree | c36fd08364a01f2ba713f8df5aa3dd1c69314220 /app/services/emails/create_service.rb | |
parent | 87bf08c96cf9f3c451d0746d11ceac149adf22db (diff) |
update missing email actions
Diffstat (limited to 'app/services/emails/create_service.rb')
-rw-r--r-- | app/services/emails/create_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/emails/create_service.rb b/app/services/emails/create_service.rb index 95e226ec710..ea65b82e418 100644 --- a/app/services/emails/create_service.rb +++ b/app/services/emails/create_service.rb @@ -3,7 +3,7 @@ module Emails def execute(skip_authorization: false) raise Gitlab::Access::AccessDeniedError unless skip_authorization || can_manage_emails? - @user.emails.create!(email: @email) + @user.emails.create(email: @email) end end end |