mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
join two renders
This commit is contained in:
parent
04c294adb1
commit
ae013b6fa8
1 changed files with 1 additions and 2 deletions
|
@ -52,8 +52,7 @@ class RepositoryRowsController < ApplicationController
|
|||
|
||||
def show
|
||||
@repository_row = RepositoryRow.find_by(id: params[:id])
|
||||
render_403 unless can_read_repository?(@repository_row.repository)
|
||||
render_403 unless @repository_row.repository_id == params[:repository_id]
|
||||
render_403 if !can_read_repository?(@repository_row.repository) || @repository_row.repository_id != params[:repository_id]
|
||||
|
||||
@assigned_modules = @repository_row.my_modules.joins(experiment: :project)
|
||||
@viewable_modules = @assigned_modules.viewable_by_user(current_user, current_user.teams)
|
||||
|
|
Loading…
Reference in a new issue