mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
Remove image
This commit is contained in:
parent
a7b13a4a70
commit
23581059e7
2 changed files with 1 additions and 10 deletions
|
|
@ -68,9 +68,7 @@ module ActiveStorage
|
|||
end
|
||||
|
||||
def check_experiment_read_permissions
|
||||
experiment = @blob.attachments.first.record
|
||||
experiment.archived = false if experiment.archived
|
||||
render_403 && return unless can_read_experiment?(experiment)
|
||||
render_403 && return unless can_read_experiment?(@blob.attachments.first.record)
|
||||
end
|
||||
|
||||
def check_zip_export_read_permissions
|
||||
|
|
|
|||
|
|
@ -23,13 +23,6 @@
|
|||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<% if experiment.workflowimg.attached? %>
|
||||
<div class="workflowimg-container">
|
||||
<%= image_tag(
|
||||
experiment.workflowimg,
|
||||
class: 'img-responsive center-block') %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<%=t "projects.experiment_archive.archived_on" %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue