mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Merge pull request #4324 from aignatov-bio/ai-sci-7062-marvinjs-save-issue
Fix marvinJS save issue [SCI-7062]
This commit is contained in:
commit
85cc7ae581
1 changed files with 5 additions and 2 deletions
|
@ -122,9 +122,12 @@ class TinyMceAssetsController < ApplicationController
|
||||||
|
|
||||||
def check_edit_permission
|
def check_edit_permission
|
||||||
if @assoc.nil?
|
if @assoc.nil?
|
||||||
return render_403 unless current_team == @asset.team
|
if current_team == @asset.team
|
||||||
|
return
|
||||||
|
else
|
||||||
|
return render_403
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
case @assoc
|
case @assoc
|
||||||
when StepText
|
when StepText
|
||||||
return render_403 unless can_manage_step?(@assoc.step)
|
return render_403 unless can_manage_step?(@assoc.step)
|
||||||
|
|
Loading…
Reference in a new issue