mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 07:05:57 +08:00
Fix user group removal [SCI-12040]
This commit is contained in:
parent
edf8e2d00a
commit
4dc4f42f87
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class UserAssignment < ApplicationRecord
|
|||
def remove_user_group_memberships
|
||||
user.user_group_memberships
|
||||
.joins(:user_group)
|
||||
.where(user_group: { team_id: team_id })
|
||||
.where(user_group: { team: assignable })
|
||||
.destroy_all
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue