mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
misc: added proper notice for non-admins doing privilege upgrade
This commit is contained in:
@@ -263,6 +263,14 @@ export const UpgradePrivilegeSystemModal = ({ isOpen, onOpenChange }: Props) =>
|
||||
</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)}>
|
||||
<div className="mt-6 flex items-center justify-end gap-4">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user