Expose an API for plugins to be hidden on the admin plugin page.

This commit is contained in:
Guo Xiang Tan
2018-05-08 13:24:58 +08:00
parent 086cb0f849
commit c6f45fcfdb
3 changed files with 13 additions and 1 deletions

View File

@ -493,6 +493,10 @@ JS
PluginGem.load(path, name, version, opts)
end
def hide_plugin
Discourse.hidden_plugins << self
end
def enabled_site_setting_filter(filter = nil)
if filter
@enabled_setting_filter = filter