Merge pull request #3799 from artoscinote/ma_SCI_6456

Fix list of assigned tasks in assigned dropdown [SCI-6456]
This commit is contained in:
artoscinote 2022-01-27 13:43:14 +01:00 committed by GitHub
commit 8a803bdb0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ class RepositoryRowsController < ApplicationController
params[:query],
whole_phrase: true
)
viewable_modules = assigned_modules.viewable_by_user(current_user, current_team)
viewable_modules = assigned_modules.viewable_by_user(current_user, current_user.teams)
private_modules_number = assigned_modules.where.not(id: viewable_modules).count
render json: {
html: render_to_string(partial: 'shared/my_modules_list_partial.html.erb', locals: {