X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fadresses.address.tpl;h=e39d4268d3ac4431c12e624da83480113673250f;hb=eb9bea425529e79fc3d00691517d374bcf27abe5;hp=c30aac96aa1eb0f26335ff16aff3022e4db18fda;hpb=684195f33b11e3067200dd3a9e14304bd7d04463;p=platal.git diff --git a/templates/profile/adresses.address.tpl b/templates/profile/adresses.address.tpl index c30aac9..e39d426 100644 --- a/templates/profile/adresses.address.tpl +++ b/templates/profile/adresses.address.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,11 +22,17 @@ {assign var=prefname value="addresses[$i]"} {assign var=prefid value="addresses_$i"} +{if !hasPerm('directory_private') && ($address.pub eq 'private') && !$new} +{assign var=hiddenaddr value=true} +{else} +{assign var=hiddenaddr value=false} +{/if} +