Removed old permission
authorAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 10:51:04 +0000 (12:51 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 10:51:04 +0000 (12:51 +0200)
com.woltlab.wcf/templates/messageFormTabsInline.tpl

index 3caa6a53f806087eb8834535455cde12e6e390cc..74f7c54512fd257f949a28e14cf925e040d2727b 100644 (file)
@@ -1,5 +1,4 @@
 {assign var=smileyCategories value=$__wcf->getSmileyCache()->getVisibleCategories()}
-{if !$permissionCanUseSmilies|isset}{assign var=permissionCanUseSmilies value='user.message.canUseSmilies'}{/if}
 {if !$wysiwygContainerID|isset}{assign var=wysiwygContainerID value='text'}{/if}
 {if !$wysiwygSelector|isset}{assign var=wysiwygSelector value=$wysiwygContainerID}{/if}
 
@@ -9,7 +8,7 @@
 <div class="messageTabMenu"{if $preselectTabMenu|isset} data-preselect="{$preselectTabMenu}"{/if} data-wysiwyg-container-id="{$wysiwygContainerID}">
        <nav class="messageTabMenuNavigation jsOnly">
                <ul>
-                       {if MODULE_SMILEY && $__wcf->getSession()->getPermission($permissionCanUseSmilies) && $smileyCategories|count}<li data-name="smilies"><a><span class="icon icon16 fa-smile-o"></span> <span>{lang}wcf.message.smilies{/lang}</span></a></li>{/if}
+                       {if MODULE_SMILEY && !$smileyCategories|empty}<li data-name="smilies"><a><span class="icon icon16 fa-smile-o"></span> <span>{lang}wcf.message.smilies{/lang}</span></a></li>{/if}
                        {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}<li data-name="attachments"><a><span class="icon icon16 fa-paperclip"></span> <span>{lang}wcf.attachment.attachments{/lang}</span></a></li>{/if}
                        {if $__messageFormSettingsInlineContent}<li data-name="settings"><a><span class="icon icon16 fa-cog"></span> <span>{lang}wcf.message.settings{/lang}</span></a></li>{/if}
                        {if $__showPoll|isset && $__showPoll}<li data-name="poll"><a><span class="icon icon16 fa-bar-chart"></span> <span>{lang}wcf.poll.management{/lang}</span></a></li>{/if}
@@ -17,7 +16,7 @@
                </ul>
        </nav>
        
-       {if MODULE_SMILEY && $__wcf->getSession()->getPermission($permissionCanUseSmilies) && $smileyCategories|count}{include file='messageFormSmilies'}{/if}
+       {if MODULE_SMILEY && !$smileyCategories|empty}{include file='messageFormSmilies'}{/if}
        {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}{include file='messageFormAttachments'}{/if}
        
        {if $__messageFormSettingsInlineContent}{@$__messageFormSettingsInlineContent}{/if}