mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
DEV: Remove unused topic_create_allowed_category_ids (#23463)
This commit is contained in:
parent
26dfb8a489
commit
4db5310135
|
@ -1396,10 +1396,6 @@ class User < ActiveRecord::Base
|
||||||
cats.pluck("categories.id").sort
|
cats.pluck("categories.id").sort
|
||||||
end
|
end
|
||||||
|
|
||||||
def topic_create_allowed_category_ids
|
|
||||||
Category.topic_create_allowed(self.id).select(:id)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Flag all posts from a user as spam
|
# Flag all posts from a user as spam
|
||||||
def flag_linked_posts_as_spam
|
def flag_linked_posts_as_spam
|
||||||
results = []
|
results = []
|
||||||
|
|
|
@ -58,9 +58,6 @@ class Guardian
|
||||||
def secure_category_ids
|
def secure_category_ids
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
def topic_create_allowed_category_ids
|
|
||||||
[]
|
|
||||||
end
|
|
||||||
def groups
|
def groups
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|
|
@ -69,10 +69,6 @@ module CategoryGuardian
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def topic_create_allowed_category_ids
|
|
||||||
@topic_create_allowed_category_ids ||= @user.topic_create_allowed_category_ids
|
|
||||||
end
|
|
||||||
|
|
||||||
def topic_featured_link_allowed_category_ids
|
def topic_featured_link_allowed_category_ids
|
||||||
@topic_featured_link_allowed_category_ids =
|
@topic_featured_link_allowed_category_ids =
|
||||||
Category.where(topic_featured_link_allowed: true).pluck(:id)
|
Category.where(topic_featured_link_allowed: true).pluck(:id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user