diff --git a/Gemfile.lock b/Gemfile.lock index f0ce27914..8fb8d3f60 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -661,7 +661,7 @@ GEM rspec rss (0.3.1) rexml - rubocop (1.69.2) + rubocop (1.70.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) diff --git a/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb b/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb index e93d1df57..c6673db82 100644 --- a/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb +++ b/plugins/ShinyCMS/app/public/controllers/concerns/shinycms/admin/with_posts.rb @@ -30,7 +30,7 @@ def enforce_change_author_capability_for_update( category ) # Return true if the page we're on might need a WYSIWYG HTML editor def with_html_editor? - action_name == 'new' || action_name == 'edit' + %w[ new edit ].include? action_name end end end