From 60923850978c6189df3242e505150f4533eef45b Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Tue, 1 Mar 2016 19:34:21 -0800 Subject: [PATCH] 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. --- WEB-INF/templates/footer.tpl | 2 +- profile_edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.20.1
 Anuko Time Tracker 1.9.12.3384 | Copyright © Anuko | +  Anuko Time Tracker 1.9.12.3385 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license}