-<dl class="jsOnly">
- <dt><label for="tagSearchInput{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}">{lang}wcf.tagging.tags{/lang}</label></dt>
- <dd>
- <div id="tagList{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}" class="editableItemList"></div>
- <input id="tagSearchInput{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}" type="text" value="" class="long" />
- <small>{lang}wcf.tagging.tags.description{/lang}</small>
- </dd>
-</dl>
-<script data-relocate="true">
- //<![CDATA[
- $(function() {
- var $tagList = new WCF.Tagging.TagList('#tagList{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}', '#tagSearchInput{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}', {@TAGGING_MAX_TAG_LENGTH});
-
- {if $tags|isset && $tags|count}
- $tagList.load([ {implode from=$tags item=tag}'{$tag|encodeJS}'{/implode} ]);
- {/if}
- });
- //]]>
-</script>
\ No newline at end of file
+{if $__wcf->session->getPermission('user.tag.canViewTag')}
+ <dl class="jsOnly">
+ <dt><label for="tagSearchInput{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}">{lang}wcf.tagging.tags{/lang}</label></dt>
+ <dd>
+ <div id="tagList{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}" class="editableItemList"></div>
+ <input id="tagSearchInput{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}" type="text" value="" class="long" />
+ <small>{lang}wcf.tagging.tags.description{/lang}</small>
+ </dd>
+ </dl>
+
+ <script data-relocate="true">
+ //<![CDATA[
+ $(function() {
+ var $tagList = new WCF.Tagging.TagList('#tagList{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}', '#tagSearchInput{if $tagInputSuffix|isset}{@$tagInputSuffix}{/if}', {@TAGGING_MAX_TAG_LENGTH});
+
+ {if $tags|isset && $tags|count}
+ $tagList.load([ {implode from=$tags item=tag}'{$tag|encodeJS}'{/implode} ]);
+ {/if}
+ });
+ //]]>
+ </script>
+{/if}
<admindefaultvalue>1</admindefaultvalue>
<usersonly>1</usersonly>
</option>
+
+ <!-- todo: find better category -->
+ <option name="user.tag.canViewTag">
+ <categoryname>user.message</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ <options>module_tagging</options>
+ </option>
</options>
</import>
</data>