<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
+ <option name="admin.user.canBanUser">
+ <categoryname>admin.user.user</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>0</defaultvalue>
+ <admindefaultvalue>1</admindefaultvalue>
+ </option>
<option name="admin.user.canMailUser">
<categoryname>admin.user.user</categoryname>
<optiontype>boolean</optiontype>
// save user
$saveOptions = $this->optionHandler->save();
$this->additionalFields['languageID'] = $this->languageID;
+ if (WCF::getSession()->getPermission('admin.user.canBanUser')) {
+ $this->additionalFields['banned'] = $this->banned;
+ $this->additionalFields['banReason'] = $this->banReason;
+ }
$data = array(
'data' => array_merge($this->additionalFields, array(
'username' => $this->username,