Refactor canManageTeam in group_edit.tpl (#59)
authorbonnedav <theD_2011@hotmail.com>
Tue, 3 Apr 2018 01:15:53 +0000 (19:15 -0600)
committeranuko <support@anuko.com>
Tue, 3 Apr 2018 01:15:53 +0000 (01:15 +0000)
WEB-INF/templates/group_edit.tpl

index 5a5711b..72222c0 100644 (file)
@@ -94,7 +94,7 @@ function handlePluginCheckboxes() {
 
 {$forms.groupForm.open}
 
-{if $user->canManageTeam()}
+{if $user->can('manage_basic_settings')}
 {include file="datetime_format_preview.tpl"}
 {/if}
 
@@ -102,7 +102,7 @@ function handlePluginCheckboxes() {
     <tr>
       <td>
         <table cellspacing="1" cellpadding="2" border="0">
-{if $user->isManager() || ($user->canManageTeam() && !defined(MANAGER_ONLY_TEAM_SETTINGS))}
+{if $user->can('manage_basic_settings')}
           <tr>
             <td align="right" nowrap>{$i18n.label.group_name}:</td>
             <td>{$forms.groupForm.team_name.control}</td>