diff options
author | James Lopez <james@jameslopez.es> | 2017-06-22 12:27:37 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-06-23 12:41:42 +0300 |
commit | c9fd3dc42c462ce2551f6a9630035b4df00bc366 (patch) | |
tree | 5e4bd5226fff9fa00ba9db17056d21a59db527d7 /app/services/emails/create_service.rb | |
parent | 785cbb79e255c8369ca5eb916207304f39d188ad (diff) |
more refactoring based on feedback
Diffstat (limited to 'app/services/emails/create_service.rb')
-rw-r--r-- | app/services/emails/create_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/emails/create_service.rb b/app/services/emails/create_service.rb index ea65b82e418..b6491ee9804 100644 --- a/app/services/emails/create_service.rb +++ b/app/services/emails/create_service.rb @@ -1,8 +1,6 @@ module Emails class CreateService < ::Emails::BaseService - def execute(skip_authorization: false) - raise Gitlab::Access::AccessDeniedError unless skip_authorization || can_manage_emails? - + def execute @user.emails.create(email: @email) end end |