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
|
||||
end
|
||||
|
||||
def topic_create_allowed_category_ids
|
||||
Category.topic_create_allowed(self.id).select(:id)
|
||||
end
|
||||
|
||||
# Flag all posts from a user as spam
|
||||
def flag_linked_posts_as_spam
|
||||
results = []
|
||||
|
|
|
@ -58,9 +58,6 @@ class Guardian
|
|||
def secure_category_ids
|
||||
[]
|
||||
end
|
||||
def topic_create_allowed_category_ids
|
||||
[]
|
||||
end
|
||||
def groups
|
||||
[]
|
||||
end
|
||||
|
|
|
@ -69,10 +69,6 @@ module CategoryGuardian
|
|||
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
|
||||
@topic_featured_link_allowed_category_ids =
|
||||
Category.where(topic_featured_link_allowed: true).pluck(:id)
|
||||
|
|
Loading…
Reference in New Issue