Automatically allow admins to use the Twitter admin panel if the TwitterBridge plugin is installed
This commit is contained in:
parent
58ea000485
commit
9a51caa485
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user