mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 22:49:28 +08:00
FIX: Admin wrench should be visible to leaders too
This commit is contained in:
parent
11e303e278
commit
1e2bad135f
|
@ -10,7 +10,7 @@ export default ContainerView.extend({
|
||||||
|
|
||||||
const topic = this.get('topic');
|
const topic = this.get('topic');
|
||||||
|
|
||||||
if (!mobileView && this.currentUser.get('staff')) {
|
if (!mobileView && this.currentUser.get('canManageTopic')) {
|
||||||
const viewArgs = { topic, delegated: this.get('topicDelegated'), openUpwards: true };
|
const viewArgs = { topic, delegated: this.get('topicDelegated'), openUpwards: true };
|
||||||
this.attachViewWithArgs(viewArgs, 'topic-admin-menu-button');
|
this.attachViewWithArgs(viewArgs, 'topic-admin-menu-button');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user