FIX: Allow group owners manage group flair (#12415)

Follow up to commit 901cee55cd.
This commit is contained in:
Bianca Nenciu 2021-03-17 16:35:51 +02:00 committed by GitHub
parent d56b2e85aa
commit 9b4b2149ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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",

View File

@ -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>