]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Automatically allow admins to use the Twitter admin panel if the TwitterBridge plugin...
authorZach Copley <zach@status.net>
Wed, 13 Jul 2011 23:02:52 +0000 (23:02 +0000)
committerZach Copley <zach@status.net>
Wed, 13 Jul 2011 23:02:52 +0000 (23:02 +0000)
plugins/TwitterBridge/TwitterBridgePlugin.php

index 6ac742f22f749d11f8f92401171cad4dffcbd814..b37d01274d9989170608b732f1f8f317cafda05a 100644 (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
      *