X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fbase.tpl;h=cd11e4051effeef8b0f4930a5dd06929a63ca1ff;hb=82af3fc3b6e003b0cbbcf4faf4ed4f0ea5c07570;hp=dba4c057663e1777a982bb7aec08288acb83dc54;hpb=730a173a333507926e0029d8a96c3a26b55756e4;p=platal.git diff --git a/templates/profile/base.tpl b/templates/profile/base.tpl index dba4c05..cd11e40 100644 --- a/templates/profile/base.tpl +++ b/templates/profile/base.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 *} @@ -20,15 +20,22 @@ {* *} {**************************************************************************} +{assign var=isMe value=$smarty.session.user->isMyProfile($profile)} +{if hasPerm('directory_private')} +{assign var=viewPrivate value=true} +{/if} +