Class: Namespaces::Groups::AdjournedDeletionService

Inherits:
BaseGroupService show all
Defined in:
app/services/namespaces/groups/adjourned_deletion_service.rb

Instance Attribute Summary

Attributes inherited from BaseGroupService

#group

Attributes inherited from BaseContainerService

#container, #current_user, #group, #params, #project

Instance Method Summary collapse

Methods inherited from BaseGroupService

#initialize

Methods inherited from BaseContainerService

#group_container?, #initialize, #namespace_container?, #project_container?, #project_group, #root_ancestor

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?, #can_all?, #can_any?

Constructor Details

This class inherits a constructor from BaseGroupService

Instance Method Details

#executeObject



11
12
13
14
15
16
17
# File 'app/services/namespaces/groups/adjourned_deletion_service.rb', line 11

def execute
  if can_current_user_remove_group?
    delete_group
  else
    restore_group
  end
end