diff options
Diffstat (limited to 'app/workers/remove_expired_group_links_worker.rb')
-rw-r--r-- | app/workers/remove_expired_group_links_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/remove_expired_group_links_worker.rb b/app/workers/remove_expired_group_links_worker.rb index f1da5f37945..0bac595f0c4 100644 --- a/app/workers/remove_expired_group_links_worker.rb +++ b/app/workers/remove_expired_group_links_worker.rb @@ -11,7 +11,7 @@ class RemoveExpiredGroupLinksWorker # rubocop:disable Scalability/IdempotentWork def perform ProjectGroupLink.expired.find_each do |link| - Projects::GroupLinks::DestroyService.new(link.project, nil).execute(link) + Projects::GroupLinks::DestroyService.new(link.project, nil).execute(link, skip_authorization: true) end GroupGroupLink.expired.find_in_batches do |link_batch| |