Remove status from allowed parameters in CardsController#update

We don't allow changing the status via this action, and it's confusing
and can lead to cases where someone can set someone's else card as
draft, effectively hiding it.
This commit is contained in:
Rosa Gutierrez
2025-12-19 22:29:11 +01:00
committed by Rosa Gutierrez
parent bd6c1cf34f
commit 641e67dc2e
+1 -1
View File
@@ -61,6 +61,6 @@ class CardsController < ApplicationController
end
def card_params
params.expect(card: [ :status, :title, :description, :image, :created_at, :last_active_at ])
params.expect(card: [ :title, :description, :image, :created_at, :last_active_at ])
end
end