Skip to content
代码片段 群组 项目
未验证 提交 c889133c 编辑于 作者: Cody West's avatar Cody West 提交者: Josianne Hyson
浏览文件

Skip DeactivateService authorization in cron

Skip user authorization in DeactivateDormantUsersWorker sidekiq cron.
上级 685f8ca8
No related branches found
No related tags found
无相关合并请求
......@@ -28,7 +28,7 @@ def deactivate_users(scope, admin_bot)
with_context(caller_id: self.class.name.to_s) do
scope.each_batch do |batch|
batch.each do |user|
Users::DeactivateService.new(admin_bot).execute(user)
Users::DeactivateService.new(admin_bot, skip_authorization: true).execute(user)
end
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册