mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 13:27:46 +00:00
misc: added proper notice for non-admins doing privilege upgrade
This commit is contained in:
+8
@@ -263,6 +263,14 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{!isAdmin && (
|
||||||
|
<div className="mb-2 text-sm text-red-500">
|
||||||
|
You cannot perform this upgrade because you are not an organization admin.
|
||||||
|
<br />
|
||||||
|
(Your current role:{" "}
|
||||||
|
<span className="font-semibold">{membership?.role ?? "Unknown"}</span>)
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<form onSubmit={handleSubmit(handlePrivilegeSystemUpgrade)}>
|
<form onSubmit={handleSubmit(handlePrivilegeSystemUpgrade)}>
|
||||||
<div className="mt-6 flex items-center justify-end gap-4">
|
<div className="mt-6 flex items-center justify-end gap-4">
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user