mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
DEV: New readonly mode. Only applies to non-staff (#16243)
This commit is contained in:

committed by
GitHub

parent
985afe1092
commit
6e53f4d913
@ -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
|
||||
|
Reference in New Issue
Block a user