X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fphone.tpl;h=9169e3b0426ef95edbb6308a589e63ae8c4f9942;hb=5aed580a3a092b460ecfa5ea398c822b9aa904da;hp=e12cec4034908528c4d6447119ad0414b456d58c;hpb=89cb2025f5f2aed0be3994c89ac473aa11535853;p=platal.git diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index e12cec4..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}