diff --git a/public/app/features/admin/UserOrgs.tsx b/public/app/features/admin/UserOrgs.tsx index b85247e1248..16d2a62d684 100644 --- a/public/app/features/admin/UserOrgs.tsx +++ b/public/app/features/admin/UserOrgs.tsx @@ -163,8 +163,12 @@ class UnThemedOrgRow extends PureComponent { onOrgRemove = async () => { const { org, user } = this.props; - user && (await updateUserRoles([], user.id, org.orgId)); this.props.onOrgRemove(org.orgId); + if (contextSrv.licensedAccessControlEnabled()) { + if (contextSrv.hasPermission(AccessControlAction.OrgUsersRemove)) { + user && (await updateUserRoles([], user.id, org.orgId)); + } + } }; onChangeRoleClick = () => {