summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-02-13 22:33:22 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-02-13 22:33:22 +0100
commit39ba889012d68304e927ce9d3df5e0b444cd3bc6 (patch)
treef41470f6560e0fe94e5b8c193640b2187f710e2d
parentf6850c97d43d5c1f092cc35198d83e120d569f11 (diff)
downloadrpg-39ba889012d68304e927ce9d3df5e0b444cd3bc6.tar.gz
rpg-39ba889012d68304e927ce9d3df5e0b444cd3bc6.tar.bz2
check modMail capability correctly FS#1329
darcs-hash:20080213213322-7ad00-bd2a818080046a492447b7c1ecb0a4c1a89ea5e1.gz
-rw-r--r--inc/html.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index 4dfa237a0..caf52b85c 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -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')) {