X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fbase.tpl;h=cd11e4051effeef8b0f4930a5dd06929a63ca1ff;hb=12262f1306059765d8625a6752364679c8625d31;hp=b9cfbdb003a8b1c59192fe798d47bb87308800c8;hpb=9f5bd98e936d8cef7ca9f774eeef64dbb8a1b079;p=platal.git diff --git a/templates/profile/base.tpl b/templates/profile/base.tpl index b9cfbdb..cd11e40 100644 --- a/templates/profile/base.tpl +++ b/templates/profile/base.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 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,16 +20,22 @@ {* *} {**************************************************************************} +{assign var=isMe value=$smarty.session.user->isMyProfile($profile)} +{if hasPerm('directory_private')} +{assign var=viewPrivate value=true} +{/if} +