Skip to content

Commit

Permalink
Merge pull request #160 from publify/limit-admin-article-params
Browse files Browse the repository at this point in the history
Use known set of allowed attributes when autosaving an Article
  • Loading branch information
mvz authored Oct 13, 2024
2 parents 67e1531 + 0a84738 commit a350c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/articles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def autosave

fetch_fresh_or_existing_draft_for_article

@article.attributes = params[:article].permit!
@article.assign_attributes(update_params)

@article.author = current_user
@article.save_attachments!(params[:attachments])
Expand Down

0 comments on commit a350c86

Please sign in to comment.