]> git.agnieray.net Git - galette.git/commitdiff
Superadmin cannot have child
authorJohan Cwiklinski <johan@x-tnd.be>
Thu, 7 Oct 2021 05:22:22 +0000 (07:22 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Sun, 17 Oct 2021 04:15:40 +0000 (06:15 +0200)
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()}