mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
improvement: address feedback
This commit is contained in:
@@ -7,8 +7,6 @@ const matchesPath = (folderPath: string, pattern: string) => {
|
|||||||
const normalizedPath = folderPath === "/" ? "/" : folderPath.replace(/\/$/, "");
|
const normalizedPath = folderPath === "/" ? "/" : folderPath.replace(/\/$/, "");
|
||||||
const normalizedPattern = pattern === "/" ? "/" : pattern.replace(/\/$/, "");
|
const normalizedPattern = pattern === "/" ? "/" : pattern.replace(/\/$/, "");
|
||||||
|
|
||||||
console.log(normalizedPath, normalizedPattern);
|
|
||||||
|
|
||||||
if (normalizedPath === normalizedPattern) {
|
if (normalizedPath === normalizedPattern) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export const RequestAccessModal = ({
|
|||||||
title="You do not have permission to perform this action"
|
title="You do not have permission to perform this action"
|
||||||
>
|
>
|
||||||
<p className="text-sm text-mineshaft-300">
|
<p className="text-sm text-mineshaft-300">
|
||||||
Request access to gain access to this action.
|
Request access to perform this action in this folder.
|
||||||
</p>
|
</p>
|
||||||
</NoticeBannerV2>
|
</NoticeBannerV2>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -645,7 +645,7 @@ const Page = () => {
|
|||||||
icon={faInfoCircle}
|
icon={faInfoCircle}
|
||||||
className="ml-[0.15rem] mr-[1.65rem] text-primary"
|
className="ml-[0.15rem] mr-[1.65rem] text-primary"
|
||||||
/>
|
/>
|
||||||
<span>You do not permission to read secrets for this path</span>
|
<span>You do not have permission to read secrets in this folder</span>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
variant="outline_bg"
|
variant="outline_bg"
|
||||||
@@ -669,9 +669,9 @@ const Page = () => {
|
|||||||
className="ml-[0.15rem] mr-[1.65rem] text-primary"
|
className="ml-[0.15rem] mr-[1.65rem] text-primary"
|
||||||
/>
|
/>
|
||||||
<span>
|
<span>
|
||||||
You do not permission to {!canEditSecrets ? "edit" : ""}
|
You do not have permission to {!canEditSecrets ? "edit" : ""}
|
||||||
{!canEditSecrets && !canDeleteSecrets ? " or " : ""}
|
{!canEditSecrets && !canDeleteSecrets ? " or " : ""}
|
||||||
{!canDeleteSecrets ? "delete" : ""} secrets for this path
|
{!canDeleteSecrets ? "delete" : ""} secrets in this folder
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user