mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add category banner for why a user cannot post (#9576)
* FEATURE: add category banner for why a user cannot post Adds a category banner for why a user is unable to post in a category. Also adds an extra alert for the user when a user is unable to create a topic in a category and they still try and click on the disabled-looking new topic button.
This commit is contained in:
7
db/migrate/20200427222624_add_read_only_to_categories.rb
Normal file
7
db/migrate/20200427222624_add_read_only_to_categories.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddReadOnlyToCategories < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :categories, :read_only_banner, :string
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user