Hide 'always-private' fields when profile is edited by an AX secretary.
[platal.git] / templates / profile / jobs.tpl
index 1146519..aa6e0df 100644 (file)
@@ -20,6 +20,7 @@
 {*                                                                        *}
 {**************************************************************************}
 
+{javascript name=jquery.jstree}
 {javascript name=jobtermstree}
 {foreach from=$jobs item=job key=i}
 {include file="profile/jobs.job.tpl" i=$i job=$job new=false}
@@ -76,6 +77,7 @@
   </tr>
 </table>
 
+{if $smarty.session.user->checkPerms('directory_private')}
 <table class="bicol" summary="CV" style="margin-top: 1.5em">
   <tr>
     <th>
     </td>
   </tr>
 </table>
+{/if}
 
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}