mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-01 02:05:41 +08:00
Scope exported projects to visible_to user
This commit is contained in:
parent
ddbc22b274
commit
eae3a7fc16
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class TeamsController < ApplicationController
|
|||
if export_projects_params[:project_folder_ids]
|
||||
folders = @team.project_folders.where(id: export_projects_params[:project_folder_ids])
|
||||
folders.each do |folder|
|
||||
@exp_projects += folder.inner_projects
|
||||
@exp_projects += folder.inner_projects.visible_to(current_user, @team)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue