mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Don't show the link to "Needs Approval" unless approval is enabled.
Note that any plugin that extends the NewPostMananger to support enqueuing will enable it.
This commit is contained in:
@@ -26,6 +26,12 @@ class NewPostManager
|
||||
end
|
||||
end
|
||||
|
||||
def self.queue_enabled?
|
||||
SiteSetting.approve_post_count > 0 ||
|
||||
SiteSetting.approve_unless_trust_level.to_i > 0 ||
|
||||
handlers.size > 1
|
||||
end
|
||||
|
||||
add_handler {|manager| default_handler(manager) }
|
||||
|
||||
def initialize(user, args)
|
||||
|
||||
Reference in New Issue
Block a user