mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
Fix list of assigned tasks in assigned dropdown [SCI-6456]
This commit is contained in:
parent
8c8d26011d
commit
8a9be0cc3c
1 changed files with 1 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue