Class: Authorizations::NotificationService

Inherits:
Object
  • Object
show all
Includes:
BaseServiceUtility
Defined in:
app/services/authorizations/notification_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

#initialize(current_user) ⇒ NotificationService

Returns a new instance of NotificationService.



9
10
11
# File 'app/services/authorizations/notification_service.rb', line 9

def initialize(current_user)
  @current_user = current_user
end

Instance Attribute Details

#current_userObject (readonly)

Returns the value of attribute current_user.



7
8
9
# File 'app/services/authorizations/notification_service.rb', line 7

def current_user
  @current_user
end

Instance Method Details

#executeObject

EE would override and use ‘request` arg



14
15
16
# File 'app/services/authorizations/notification_service.rb', line 14

def execute
  notification_service.application_authorized(current_user)
end