From: bonnedav Date: Tue, 3 Apr 2018 01:15:53 +0000 (-0600) Subject: Refactor canManageTeam in group_edit.tpl (#59) X-Git-Tag: timetracker_1.19-1~882 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b9026f8ab6535160feb9d4d1caf95495f5b159be;p=timetracker.git Refactor canManageTeam in group_edit.tpl (#59) --- diff --git a/WEB-INF/templates/group_edit.tpl b/WEB-INF/templates/group_edit.tpl index 5a5711b0..72222c09 100644 --- a/WEB-INF/templates/group_edit.tpl +++ b/WEB-INF/templates/group_edit.tpl @@ -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() { -{if $user->isManager() || ($user->canManageTeam() && !defined(MANAGER_ONLY_TEAM_SETTINGS))} +{if $user->can('manage_basic_settings')}
{$i18n.label.group_name}: {$forms.groupForm.team_name.control}