mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Catalog: Fix InstallControls for externally managed users (#37531)
This commit is contained in:
parent
d48febee75
commit
224b062cac
@ -94,8 +94,9 @@ export const InstallControls = ({ plugin, isInflight, hasUpdate, isInstalled, ha
|
||||
);
|
||||
}
|
||||
|
||||
if (!hasPermission) {
|
||||
const message = `You need server admin privileges to ${isInstalled ? 'uninstall' : 'install'} this plugin.`;
|
||||
if (!hasPermission && !isExternallyManaged) {
|
||||
const pluginStatus = isInstalled ? 'uninstall' : hasUpdate ? 'update' : 'install';
|
||||
const message = `You do not have permission to ${pluginStatus} this plugin.`;
|
||||
return <div className={styles.message}>{message}</div>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user