X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fphone.tpl;h=9169e3b0426ef95edbb6308a589e63ae8c4f9942;hb=5aed580a3a092b460ecfa5ea398c822b9aa904da;hp=de83b745abf1ce202edc706dfdcbe7b2517737ee;hpb=372fbb196e649a098e3c7df848f909849696ef65;p=platal.git diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index de83b74..9169e3b 100644 --- a/templates/profile/phone.tpl +++ b/templates/profile/phone.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 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,29 +22,44 @@ {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}