X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fbase.tpl;h=53ba85e14de717883a35e827a5e0877f428c9684;hb=34c0246248ed6e3c6a372c89b359ce038bb95bc8;hp=10cc7957172f6a9074e9d15f103c5774744c1b8f;hpb=ee12da4e14360ccd4fd9f7852570c5511c6fc568;p=platal.git diff --git a/templates/profile/base.tpl b/templates/profile/base.tpl index 10cc795..53ba85e 100644 --- a/templates/profile/base.tpl +++ b/templates/profile/base.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,15 +20,22 @@ {* *} {**************************************************************************} +{assign var=isMe value=$smarty.session.user->isMyProfile($profile)} +{if hasPerm('directory_private')} +{assign var=viewPrivate value=true} +{/if} +