Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-12-11 21:15:10 +0300
committerFelipe Artur <felipefac@gmail.com>2018-12-14 15:38:52 +0300
commit1653f7b1c68b2ea7da8df84ed459b9578e3dff8f (patch)
tree9e55514e5682aa8799469286265b3e51af84b003 /app/services/groups
parentcc7353523bc1d19054769d7a0a61b0cb7f6ce4e3 (diff)
Delete confidential issue todos for guests
Fix leaking information of confidential issues on TODOs when user is downgraded to guest access.
Diffstat (limited to 'app/services/groups')
-rw-r--r--app/services/groups/update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/groups/update_service.rb b/app/services/groups/update_service.rb
index 0bf0e967dcc..83ffc3dc8cd 100644
--- a/app/services/groups/update_service.rb
+++ b/app/services/groups/update_service.rb
@@ -31,7 +31,7 @@ module Groups
def after_update
if group.previous_changes.include?(:visibility_level) && group.private?
# don't enqueue immediately to prevent todos removal in case of a mistake
- TodosDestroyer::GroupPrivateWorker.perform_in(1.hour, group.id)
+ TodosDestroyer::GroupPrivateWorker.perform_in(Todo::WAIT_FOR_DELETE, group.id)
end
end