<fieldset id="settings" class="settingsContent tabMenuContent container containerPadding">
<dl class="wide">
- {if $__wcf->getSession()->getPermission('user.message.canUseBBCodes')}
+ {if $__wcf->getSession()->getPermission($permissionCanUseBBCodes)}
<dd>
<label><input id="preParse" name="preParse" type="checkbox" value="1"{if $preParse} checked="checked"{/if} /> {lang}wcf.message.settings.preParse{/lang}</label>
<small>{lang}wcf.message.settings.preParse.description{/lang}</small>
</dd>
{/if}
- {if $__wcf->getSession()->getPermission('user.message.canUseSmilies')}
+ {if $__wcf->getSession()->getPermission($permissionCanUseSmilies)}
<dd>
<label><input id="enableSmilies" name="enableSmilies" type="checkbox" value="1"{if $enableSmilies} checked="checked"{/if} /> {lang}wcf.message.settings.enableSmilies{/lang}</label>
<small>{lang}wcf.message.settings.enableSmilies.description{/lang}</small>
</dd>
{/if}
- {if $__wcf->getSession()->getPermission('user.message.canUseBBCodes')}
+ {if $__wcf->getSession()->getPermission($permissionCanUseBBCodes)}
<dd>
<label><input id="enableBBCodes" name="enableBBCodes" type="checkbox" value="1"{if $enableBBCodes} checked="checked"{/if} /> {lang}wcf.message.settings.enableBBCodes{/lang}</label>
<small>{lang}wcf.message.settings.enableBBCodes.description{/lang}</small>
</dd>
{/if}
- {if $__wcf->getSession()->getPermission('user.message.canUseHtml')}
+ {if $__wcf->getSession()->getPermission($permissionCanUseHtml)}
<dd>
<label><input id="enableHtml" name="enableHtml" type="checkbox" value="1"{if $enableHtml} checked="checked"{/if} /> {lang}wcf.message.settings.enableHtml{/lang}</label>
<small>{lang}wcf.message.settings.enableHtml.description{/lang}</small>
<div class="tabMenuContainer" data-active="{$activeTabMenuItem}" data-store="activeTabMenuItem">
<nav class="tabMenu jsOnly">
<ul>
- {if MODULE_SMILEY && $smileyCategories|count}<li id="smiliesTab"><a href="{@$__wcf->getAnchor('smilies')}" title="{lang}wcf.message.smilies{/lang}">{lang}wcf.message.smilies{/lang}</a></li>{/if}
+ {if MODULE_SMILEY && $__wcf->getSession()->getPermission($permissionCanUseSmilies) && $smileyCategories|count}<li id="smiliesTab"><a href="{@$__wcf->getAnchor('smilies')}" title="{lang}wcf.message.smilies{/lang}">{lang}wcf.message.smilies{/lang}</a></li>{/if}
{if MODULE_ATTACHMENT && $attachmentHandler !== null && $attachmentHandler->canUpload()}<li id="attachmentsTab"><a href="{@$__wcf->getAnchor('attachments')}" title="{lang}wcf.attachment.attachments{/lang}">{lang}wcf.attachment.attachments{/lang}</a></li>{/if}
<li><a href="{@$__wcf->getAnchor('settings')}" title="{lang}wcf.message.settings{/lang}">{lang}wcf.message.settings{/lang}</a></li>
{if $__showPoll|isset && $__showPoll}<li><a href="{@$__wcf->getAnchor('poll')}" title="{lang}wcf.poll.management{/lang}">{lang}wcf.poll.management{/lang}</a></li>{/if}
</ul>
</nav>
- {if MODULE_SMILEY && $smileyCategories|count}{include file='messageFormSmilies'}{/if}
+ {if MODULE_SMILEY && $__wcf->getSession()->getPermission($permissionCanUseSmilies) && $smileyCategories|count}{include file='messageFormSmilies'}{/if}
{if MODULE_ATTACHMENT && $attachmentHandler !== null && $attachmentHandler->canUpload()}{include file='messageFormAttachments'}{/if}
{include file='messageFormSettings'}
'enableSmilies' => $this->enableSmilies,
'languageID' => ($this->languageID ?: 0),
'maxTextLength' => $this->maxTextLength,
+ 'permissionCanUseBBCodes' => $this->permissionCanUseBBCodes,
+ 'permissionCanUseHtml' => $this->permissionCanUseHtml,
+ 'permissionCanUseSmilies' => $this->permissionCanUseSmilies,
'preParse' => $this->preParse,
'showSignature' => $this->showSignature,
'showSignatureSetting' => $this->showSignatureSetting,