X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fprofile%2Fphone.tpl;h=396bbc1cea26739f1eaa81645924eb0ef3172046;hb=07e4a9a091ac34c84129c230cde455de34e1ae91;hp=40715be4ab92698e87afe6c007ce1ce50d291c94;hpb=32d8754be017db3aa656812fca2a92704ebe29ae;p=platal.git diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index 40715be..396bbc1 100644 --- a/templates/profile/phone.tpl +++ b/templates/profile/phone.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2014 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}