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