mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
Fix unassigning unshared repositories [SCI-12269]
This commit is contained in:
parent
d93749e19b
commit
8c4f406d8e
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ module Shareable
|
|||
teams = for_team ? Team.where(id: for_team.id).where.not(id: team.id) : Team.where.not(id: team.id)
|
||||
|
||||
user_assignments.where(team_id: teams.select(:id)).destroy_all
|
||||
user_group_assignments.where.not(team_id: teams.select(:id)).destroy_all
|
||||
team_assignments.where.not(team_id: teams.select(:id)).destroy_all
|
||||
user_group_assignments.where(team_id: teams.select(:id)).destroy_all
|
||||
team_assignments.where(team_id: teams.select(:id)).destroy_all
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue