mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 09:02:46 +08:00
FIX: Allow group owners manage group flair (#12415)
Follow up to commit 901cee55cd
.
This commit is contained in:
parent
d56b2e85aa
commit
9b4b2149ff
|
@ -1,6 +1,7 @@
|
|||
import Component from "@ember/component";
|
||||
import I18n from "I18n";
|
||||
import { computed } from "@ember/object";
|
||||
import { not } from "@ember/object/computed";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
|
||||
export default Component.extend({
|
||||
|
@ -21,6 +22,8 @@ export default Component.extend({
|
|||
];
|
||||
},
|
||||
|
||||
canEdit: not("model.automatic"),
|
||||
|
||||
groupTrustLevel: computed(
|
||||
"model.grant_trust_level",
|
||||
"trustLevelOptions",
|
||||
|
|
|
@ -96,7 +96,9 @@
|
|||
{{i18n "admin.groups.default_title_description"}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if canEdit}}
|
||||
<div class="control-group">
|
||||
{{group-flair-inputs model=model}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user