Skip to content

Commit

Permalink
Merge pull request #2628 from expertiza/Issuefix/impersonate
Browse files Browse the repository at this point in the history
Issue fix Impersonate
  • Loading branch information
kartiki-b31 committed Sep 7, 2023
2 parents b61fd6c + eb02615 commit 99ae185
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/assignment_team.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ def self.team(participant)
return nil unless teams_users

teams_users.each do |teams_user|
if teams_user.team_id == nil
next
end
team = Team.find(teams_user.team_id)
return team if team.parent_id == participant.parent_id
end
Expand Down

0 comments on commit 99ae185

Please sign in to comment.