mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Service accounts: don't update RBAC roles in OSS when creating service account (#50922)
This commit is contained in:
@@ -85,7 +85,9 @@ export const ServiceAccountCreatePageUnconnected = ({ navModel }: Props): JSX.El
|
||||
tokens: response.tokens,
|
||||
};
|
||||
await updateServiceAccount(response.id, data);
|
||||
await updateUserRoles(pendingRoles, newAccount.id, newAccount.orgId);
|
||||
if (contextSrv.licensedAccessControlEnabled()) {
|
||||
await updateUserRoles(pendingRoles, newAccount.id, newAccount.orgId);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user