DEV: New readonly mode. Only applies to non-staff (#16243)

This commit is contained in:
Daniel Waterworth
2022-05-17 13:06:08 -05:00
committed by GitHub
parent 985afe1092
commit 6e53f4d913
14 changed files with 228 additions and 27 deletions

View File

@ -1,9 +1,9 @@
# frozen_string_literal: true
require "read_only_header"
require "read_only_mixin"
class ForumsController < ActionController::Base
include ReadOnlyHeader
include ReadOnlyMixin
before_action :check_readonly_mode
after_action :add_readonly_header