Automatically allow admins to use the Twitter admin panel if the TwitterBridge plugin is installed

This commit is contained in:
Zach Copley 2011-07-13 23:02:52 +00:00
parent 58ea000485
commit 9a51caa485

View File

@ -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
*