diff --git a/app/assets/javascripts/discourse/app/components/group-member-dropdown.js b/app/assets/javascripts/discourse/app/components/group-member-dropdown.js
index 86620d8698d..f4cb9ad287f 100644
--- a/app/assets/javascripts/discourse/app/components/group-member-dropdown.js
+++ b/app/assets/javascripts/discourse/app/components/group-member-dropdown.js
@@ -23,7 +23,7 @@ export default DropdownSelectBoxComponent.extend({
},
];
- if (this.get("currentUser.admin")) {
+ if (this.canAdminGroup) {
if (this.member.owner) {
items.push({
id: "removeOwner",
diff --git a/app/assets/javascripts/discourse/app/templates/group-index.hbs b/app/assets/javascripts/discourse/app/templates/group-index.hbs
index c21bc1b5abe..973f0aa4ce0 100644
--- a/app/assets/javascripts/discourse/app/templates/group-index.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group-index.hbs
@@ -59,6 +59,7 @@
{{#if canManageGroup}}
{{group-member-dropdown
member=m
+ canAdminGroup=model.can_admin_group
onChange=(action "actOnGroup" m)
}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs b/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs
index 36ec17ebdfa..5ef942e30cf 100644
--- a/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs
+++ b/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs
@@ -45,6 +45,7 @@
{{#if canManageGroup}}
{{group-member-dropdown
member=user
+ canAdminGroup=model.can_admin_group
onChange=(action "actOnGroup" user)
}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/modal/group-add-members.hbs b/app/assets/javascripts/discourse/app/templates/modal/group-add-members.hbs
index 4d07bdbe368..1222da13bc8 100644
--- a/app/assets/javascripts/discourse/app/templates/modal/group-add-members.hbs
+++ b/app/assets/javascripts/discourse/app/templates/modal/group-add-members.hbs
@@ -16,7 +16,7 @@
id="group-add-members-user-selector"}}
- {{#if currentUser.admin}}
+ {{#if model.can_admin_group}}