]> git.agnieray.net Git - galette.git/blobdiff - galette/templates/default/page.tpl
Superadmin cannot have child
[galette.git] / galette / templates / default / page.tpl
index eeb39221cf5b3e09febc8fc503cc5830f90c7764..b182eabc6d0579f2bf7a409c81f561efa843e659 100644 (file)
@@ -34,7 +34,7 @@ We have to use a template file, so Smarty will do its work (like replacing varia
         <h1 class="nojs">{_T string="Navigation"}</h1>
         <ul>
             <li{if $cur_route eq "dashboard"} class="selected"{/if}><a href="{path_for name="dashboard"}" title="{_T string="Go to Galette's dashboard"}">{_T string="Dashboard"}</a></li>
-  {if $preferences->pref_bool_create_member}
+  {if $preferences->pref_bool_create_member and !$login->isSuperAdmin()}
             <li{if $cur_route eq "addMemberChild"} class="selected"{/if}><a href="{path_for name="addMemberChild"}" title="{_T string="Add new child member in database"}">{_T string="Add a child member"}</a></li>
   {/if}
   {if $login->isAdmin() or $login->isStaff() or $login->isGroupManager()}