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:
committed by
Rosa Gutierrez
parent
bd6c1cf34f
commit
641e67dc2e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user