public static function authorise($response, $options = array()) { // Get plugins in case they haven't been loaded already MPluginHelper::getPlugin('user'); MPluginHelper::getPlugin('authentication'); $dispatcher = MDispatcher::getInstance(); $results = $dispatcher->trigger('onUserAuthorisation', array($response, $options)); return $results; }