X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fphone.tpl;h=767e3d1f870534470788076137000a134e887fb3;hb=8127963d297fab1ccb03df8f69cc9ddcdc645036;hp=de83b745abf1ce202edc706dfdcbe7b2517737ee;hpb=be638e733bce413df4324d985297d9a4d94dcbca;p=platal.git diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index de83b74..767e3d1 100644 --- a/templates/profile/phone.tpl +++ b/templates/profile/phone.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,29 +22,40 @@ {assign var=telpref value="`$prefname`[`$telid`]"} {assign var=id value="`$prefid`_`$telid`"} +{if !hasPerm('directory_private') && ($tel.pub eq 'private') && !empty($tel.display|smarty:nodefaults)} +{assign var=hiddentel value=true} +{else} +{assign var=hiddentel value=false} +{/if}