From 9a51caa485b7eaa486ec4476019777b6a614bbba Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 13 Jul 2011 23:02:52 +0000 Subject: [PATCH] Automatically allow admins to use the Twitter admin panel if the TwitterBridge plugin is installed --- plugins/TwitterBridge/TwitterBridgePlugin.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index 6ac742f22f..b37d01274d 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -287,6 +287,18 @@ class TwitterBridgePlugin extends Plugin return true; } + /** + * If the plugin's installed, this should be accessible to admins + */ + function onAdminPanelCheck($name, &$isOK) + { + if ($name == 'twitter') { + $isOK = true; + return false; + } + return true; + } + /** * Add a Twitter tab to the admin panel * -- 2.39.5