mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: grant trust level when bulk adding users to group
This commit is contained in:
@@ -414,6 +414,10 @@ class Group < ActiveRecord::Base
|
||||
if self.title.present?
|
||||
User.where(id: user_ids).update_all(title: self.title)
|
||||
end
|
||||
|
||||
if self.grant_trust_level.present?
|
||||
Jobs.enqueue(:bulk_grant_trust_level, user_ids: user_ids, trust_level: self.grant_trust_level)
|
||||
end
|
||||
end
|
||||
true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user