Opensearch module only for logged user
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 23 Apr 2007 11:36:18 +0000 (11:36 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 23 Apr 2007 11:36:18 +0000 (11:36 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1730 839d8a87-29fc-0310-9880-83ba4fa771e5

templates/skin/common.header.tpl

index 803d1a6..92a44bd 100644 (file)
@@ -28,7 +28,9 @@
     <link rel="index"  href="" />
     <link rel="author" href="changelog" />
     <link rel="search" href="search" />
+    {if $smarty.session.perms->hasFlag('user')}
     <link rel="search" type="application/opensearchdescription+xml" href="http://www.polytechnique.org/xorg.opensearch.xml" title="Annuaire Polytechnique.org" />
+    {/if}
     <link rel="help"   href="Xorg/FAQ" />
     <link rel="bookmark" href="http://www.polytechnique.fr/"        title="| Ă‰cole polytechnique" />
     <link rel="bookmark" href="http://www.polytechnique.edu/"       title="| Institutionnal site" />