'signature' => $this->signature,
'signatureEnableBBCodes' => $this->signatureEnableBBCodes,
'signatureEnableSmilies' => $this->signatureEnableSmilies,
- 'signatureEnableHtml' => $this->signatureEnableHtml,
- 'disableSignature' => $this->disableSignature,
- 'disableSignatureReason' => $this->disableSignatureReason
+ 'signatureEnableHtml' => $this->signatureEnableHtml
)),
'groups' => $this->groupIDs,
- 'languages' => $this->visibleLanguages,
+ 'languageIDs' => $this->visibleLanguages,
'options' => $saveOptions
);
+
+ if (WCF::getSession()->getPermission('admin.user.canDisableSignature')) {
+ $data['data']['disableSignature'] = $this->disableSignature;
+ $data['data']['disableSignatureReason'] = $this->disableSignatureReason;
+ }
+
$this->objectAction = new UserAction(array($this->userID), 'update', $data);
$this->objectAction->executeAction();