diff --git a/public/app/features/admin/UserOrgs.tsx b/public/app/features/admin/UserOrgs.tsx index 4472ea04f6e..caf09d8c289 100644 --- a/public/app/features/admin/UserOrgs.tsx +++ b/public/app/features/admin/UserOrgs.tsx @@ -164,8 +164,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 = () => {