diff --git a/app/assets/javascripts/base.js.erb b/app/assets/javascripts/base.js.erb index 88c9eaf37..4c6fd0c24 100644 --- a/app/assets/javascripts/base.js.erb +++ b/app/assets/javascripts/base.js.erb @@ -4,11 +4,9 @@ //= require initializePage //= require utilities/getImageForLink //= require @honeybadger-io/js/dist/browser/honeybadger.js -//= require @hotwired/turbo //= require i18n //= require ahoy.js/dist/ahoy.js -Turbo.session.drive = false I18n.defaultLocale = 'en'; I18n.locale = document.body.dataset.locale; I18n.translations = JSON.parse(document.getElementById('i18n-translations').dataset.translations); diff --git a/app/controllers/authorization/articles_controller.rb b/app/controllers/authorization/articles_controller.rb deleted file mode 100644 index 6a4f6ab47..000000000 --- a/app/controllers/authorization/articles_controller.rb +++ /dev/null @@ -1,16 +0,0 @@ -module Authorization - class ArticlesController < ApplicationController - include ApplicationHelper - layout false - - before_action :authenticate_user! - after_action :verify_authorized - - def create_post_button - authorize Article, :create? - unless FeatureFlag.enabled?(:limit_post_creation_to_admins) - render file: "public/404.html", status: :not_found - end - end - end -end diff --git a/app/views/authorization/articles/create_post_button.html.erb b/app/views/authorization/articles/create_post_button.html.erb deleted file mode 100644 index 1092a72d3..000000000 --- a/app/views/authorization/articles/create_post_button.html.erb +++ /dev/null @@ -1,3 +0,0 @@ - - <%= t("views.main.create_post") %> - diff --git a/app/views/layouts/_top_bar.html.erb b/app/views/layouts/_top_bar.html.erb index a5b5a48b2..b0bd64019 100644 --- a/app/views/layouts/_top_bar.html.erb +++ b/app/views/layouts/_top_bar.html.erb @@ -29,11 +29,8 @@ <% if user_signed_in? %>