FIX: Not allow TL4 user to set staff color

This commit is contained in:
Arpit Jalan 2015-02-02 10:38:42 +05:30
parent be16bbdd89
commit a29970275a
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ export default Discourse.View.extend(StringBuffer, {
'<h3>' + I18n.t('admin_title') + '</h3>' +
'<ul>' +
'<li class="btn btn-admin" data-action="toggleWiki">' + wikiIcon + wikiText + '</li>' +
'<li class="btn btn-admin" data-action="togglePostType">' + postTypeIcon + postTypeText + '</li>' +
(Discourse.User.currentProp('staff') ? '<li class="btn btn-admin" data-action="togglePostType">' + postTypeIcon + postTypeText + '</li>' : '') +
'<li class="btn btn-admin" data-action="rebakePost">' + rebakePostIcon + rebakePostText + '</li>' +
(post.hidden ? '<li class="btn btn-admin" data-action="unhidePost">' + unhidePostIcon + unhidePostText + '</li>' : '') +
'</ul>' +