mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3158 from techAPJ/patch-2
FIX: Not allow TL4 user to set staff color
This commit is contained in:
commit
8304c306a4
@ -329,7 +329,7 @@ export default Discourse.View.extend(StringBuffer, {
|
|||||||
'<h3>' + I18n.t('admin_title') + '</h3>' +
|
'<h3>' + I18n.t('admin_title') + '</h3>' +
|
||||||
'<ul>' +
|
'<ul>' +
|
||||||
'<li class="btn btn-admin" data-action="toggleWiki">' + wikiIcon + wikiText + '</li>' +
|
'<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>' +
|
'<li class="btn btn-admin" data-action="rebakePost">' + rebakePostIcon + rebakePostText + '</li>' +
|
||||||
(post.hidden ? '<li class="btn btn-admin" data-action="unhidePost">' + unhidePostIcon + unhidePostText + '</li>' : '') +
|
(post.hidden ? '<li class="btn btn-admin" data-action="unhidePost">' + unhidePostIcon + unhidePostText + '</li>' : '') +
|
||||||
'</ul>' +
|
'</ul>' +
|
||||||
|
Loading…
Reference in New Issue
Block a user