mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-01 01:14:30 +08:00
Fix displaying user groups from other teams on shared repositories [SCI-12249]
This commit is contained in:
parent
bdeab8e19f
commit
98d1ac89f3
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ module AccessPermissions
|
|||
end
|
||||
|
||||
def show_user_group_assignments
|
||||
render json: @model.user_group_assignments.includes(:user_role, :user_group).order('user_groups.name ASC'),
|
||||
render json: @model.user_group_assignments.where(team: current_team).includes(:user_role, :user_group).order('user_groups.name ASC'),
|
||||
each_serializer: UserGroupAssignmentSerializer, user: current_user
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue