From: Nik Okuntseff Date: Wed, 2 Mar 2016 03:34:21 +0000 (-0800) Subject: Disabled email edits for non managers X-Git-Tag: timetracker_1.19-1~1850 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=60923850978c6189df3242e505150f4533eef45b;p=timetracker.git Disabled email edits for non managers Disabled email editing for non-managers. Eventually we'll need to implement role editor to assign rights to do this properly. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index ee07573b..95e17318 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -14,7 +14,7 @@
- diff --git a/profile_edit.php b/profile_edit.php index ebee59d5..cdffd861 100644 --- a/profile_edit.php +++ b/profile_edit.php @@ -107,7 +107,7 @@ if (!$auth->isPasswordExternal()) { $form->addInput(array('type'=>'text','maxlength'=>'30','name'=>'password1','aspassword'=>true,'value'=>$cl_password1)); $form->addInput(array('type'=>'text','maxlength'=>'30','name'=>'password2','aspassword'=>true,'value'=>$cl_password2)); } -$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'email','value'=>$cl_email)); +$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'email','value'=>$cl_email,'enable'=>$can_change_login)); if ($user->canManageTeam()) { $form->addInput(array('type'=>'text','maxlength'=>'200','name'=>'team_name','value'=>$cl_team)); $form->addInput(array('type'=>'textarea','name'=>'address','maxlength'=>'255','style'=>'width: 350px;','cols'=>'55','rows'=>'4','value'=>$cl_address));
 Anuko Time Tracker 1.9.12.3384 | Copyright © Anuko | +  Anuko Time Tracker 1.9.12.3385 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license}