Skip to content
Snippets Groups Projects
Commit 39ba8890 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

check modMail capability correctly FS#1329

darcs-hash:20080213213322-7ad00-bd2a818080046a492447b7c1ecb0a4c1a89ea5e1.gz
parent f6850c97
No related branches found
No related tags found
No related merge requests found
......@@ -948,6 +948,8 @@ function html_updateprofile(){
$attr = array('size'=>'50');
if (!$auth->canDo('modName')) $attr['disabled'] = 'disabled';
$form->addElement(form_makeTextField('fullname', $_POST['fullname'], $lang['fullname'], '', 'block', $attr));
$attr = array('size'=>'50');
if (!$auth->canDo('modMail')) $attr['disabled'] = 'disabled';
$form->addElement(form_makeTextField('email', $_POST['email'], $lang['email'], '', 'block', $attr));
$form->addElement(form_makeTag('br'));
if ($auth->canDo('modPass')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment