(cherry picked from commit 224b062cac)
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
co-authored by
Jack Westbrook
parent
9a89e0c157
commit
db240265ff
@@ -94,8 +94,9 @@ export const InstallControls = ({ plugin, isInflight, hasUpdate, isInstalled, ha
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasPermission) {
|
if (!hasPermission && !isExternallyManaged) {
|
||||||
const message = `You need server admin privileges to ${isInstalled ? 'uninstall' : 'install'} this plugin.`;
|
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>;
|
return <div className={styles.message}>{message}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user