Skip to content

Commit

Permalink
GRN2-284: Fixed bug where admin rights emails was sent multiple times (
Browse files Browse the repository at this point in the history
…bigbluebutton#996)

Co-authored-by: Jesus Federico <[email protected]>
  • Loading branch information
etiennevvv and jfederico authored Mar 19, 2020
1 parent 3eead12 commit 73061bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/rolify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def update_roles(roles)
return true unless current_user.highest_priority_role.get_permission("can_manage_users")

new_roles = roles.split(' ').map(&:to_i)
old_roles = @user.roles.pluck(:id)
old_roles = @user.roles.distinct.pluck(:id)

added_role_ids = new_roles - old_roles
removed_role_ids = old_roles - new_roles
Expand Down

0 comments on commit 73061bd

Please sign in to comment.