From: Zach Copley Date: Wed, 13 Jul 2011 23:02:52 +0000 (+0000) Subject: Automatically allow admins to use the Twitter admin panel if the TwitterBridge plugin... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a51caa485b7eaa486ec4476019777b6a614bbba;p=quix0rs-gnu-social.git Automatically allow admins to use the Twitter admin panel if the TwitterBridge plugin is installed --- 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 *