2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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