mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 22:26:41 +00:00
misc: only display when user is admin
This commit is contained in:
+5
@@ -67,6 +67,11 @@ export const RebuildSecretIndicesSection = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const isAdmin = membership.roles.includes(ProjectMembershipRole.Admin);
|
const isAdmin = membership.roles.includes(ProjectMembershipRole.Admin);
|
||||||
|
|
||||||
|
if (!isAdmin) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
|
<div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
|
||||||
<div className="flex w-full items-center justify-between">
|
<div className="flex w-full items-center justify-between">
|
||||||
|
|||||||
Reference in New Issue
Block a user