summaryrefslogtreecommitdiff
path: root/app/services/audit_event_service.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-25 09:09:10 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-25 09:09:10 +0000
commitb98fa9ef3d5bead417ae2f325cb64637883264e9 (patch)
tree409f2002dd056f12d82d3959b3e6f012c4087123 /app/services/audit_event_service.rb
parent7e3005967df23a957fe1998c8de4f50b412e69e7 (diff)
downloadgitlab-ce-b98fa9ef3d5bead417ae2f325cb64637883264e9.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/audit_event_service.rb')
-rw-r--r--app/services/audit_event_service.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/app/services/audit_event_service.rb b/app/services/audit_event_service.rb
index 43bd0f39d68..42ed5f17d8d 100644
--- a/app/services/audit_event_service.rb
+++ b/app/services/audit_event_service.rb
@@ -3,14 +3,13 @@
class AuditEventService
# Instantiates a new service
#
- # @param author [User] the user who authors the change
- # @param entity [Object] an instance of either Project/Group/User type. This
- # param is also used to determine at which level the audit events are
- # shown.
- # - Project: events are visible at Project level
- # - Group: events are visible at Group level
+ # @param [User] author the user who authors the change
+ # @param [User, Project, Group] entity the scope which audit event belongs to
+ # This param is also used to determine the visibility of the audit event.
+ # - Project: events are visible at Project and Instance level
+ # - Group: events are visible at Group and Instance level
# - User: events are visible at Instance level
- # @param details [Hash] details to be added to audit event
+ # @param [Hash] details extra data of audit event
#
# @return [AuditEventService]
def initialize(author, entity, details = {})
@@ -21,7 +20,7 @@ class AuditEventService
# Builds the @details attribute for authentication
#
- # This uses the @author as the target object being changed
+ # This uses the @author as the target object being audited
#
# @return [AuditEventService]
def for_authentication