mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Disable 'Create Topic' button if tag is staff-only. (#6984)
* FIX: Disable 'Create Topic' button if tag is staff-only. * FIX: Staff-only tags should always return 404.
This commit is contained in:
@@ -98,6 +98,8 @@ class TagsController < ::ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
raise Discourse::NotFound if DiscourseTagging.hidden_tag_names(guardian).include?(params[:tag_id])
|
||||
|
||||
show_latest
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user