Commit f18cf271 authored by Nigel McNie's avatar Nigel McNie
Browse files

Don't show links to perform MNET if a user is an MNET user already.

parent 8b5a8f7f
......@@ -457,6 +457,7 @@ EOF;
usort($SIDEBLOCKS, create_function('$a,$b', 'if ($a["weight"] == $b["weight"]) return 0; return ($a["weight"] < $b["weight"]) ? -1 : 1;'));
$smarty->assign('userauthinstance', $SESSION->get('authinstance'));
$smarty->assign('MNETUSER', $SESSION->get('mnetuser'));
$smarty->assign('SIDEBLOCKS', $SIDEBLOCKS);
if ($USER->get('parentuser')) {
......@@ -3,7 +3,9 @@
<ul id="sitemenu">
{foreach from=$data item=peer}
{if $peer.instance != $userauthinstance}
<li><a href="{$WWWROOT}auth/xmlrpc/jump.php?wr={$peer.wwwroot|escape}&ins={$peer.instance|escape}">{$|escape}</a></li>
<li><a href="{$WWWROOT}auth/xmlrpc/jump.php?wr={$peer.wwwroot|escape}&amp;ins={$peer.instance|escape}">{$|escape}</a></li>
<li><a href="{$peer.wwwroot|escape}">{$|escape}</a></li>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment