Skip to content

Commit

Permalink
Merge pull request #2962 from manyfold3d/disable-demo-mode-upload
Browse files Browse the repository at this point in the history
Disable in-model upload form in demo mode
  • Loading branch information
Floppy authored Oct 16, 2024
2 parents 437586e + 4565765 commit 104317f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/models/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
</div>
</div>

<% if policy(@model).edit? %>
<% if policy(@model).edit? && policy(:upload).create? %>
<%= card :warning, t(".upload_card.heading") do %>
<%= form_with url: model_model_files_path(@model), id: "upload-form", class: "d-grid" do |form| %>
Expand Down

0 comments on commit 104317f

Please sign in to comment.