mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 21:27:31 +00:00
update denied text
This commit is contained in:
committed by
Akhil Mohan
parent
9c9d46824c
commit
0f46f53a7d
@@ -14,7 +14,7 @@ type Props = {
|
|||||||
} & BoundCanProps<TOrgPermission>;
|
} & BoundCanProps<TOrgPermission>;
|
||||||
|
|
||||||
export const OrgPermissionCan: FunctionComponent<Props> = ({
|
export const OrgPermissionCan: FunctionComponent<Props> = ({
|
||||||
label = "Permission Denied. Kindly contact your org admin",
|
label = "Access restricted",
|
||||||
children,
|
children,
|
||||||
passThrough = true,
|
passThrough = true,
|
||||||
renderTooltip,
|
renderTooltip,
|
||||||
|
|||||||
@@ -27,10 +27,10 @@ export const PermissionDeniedBanner = ({ containerClassName, className, children
|
|||||||
<FontAwesomeIcon icon={faLock} size="6x" />
|
<FontAwesomeIcon icon={faLock} size="6x" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="text-4xl font-medium mb-2">Permission Denied</div>
|
<div className="text-4xl font-medium mb-2">Access Restricted</div>
|
||||||
{children || (
|
{children || (
|
||||||
<div className="text-sm">
|
<div className="text-sm">
|
||||||
You do not have permission. <br /> Kindly contact your organization administrator
|
Your role has limited permissions, please <br/> contact your administrator to gain access
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ type Props = {
|
|||||||
} & BoundCanProps<any>;
|
} & BoundCanProps<any>;
|
||||||
|
|
||||||
export const ProjectPermissionCan: FunctionComponent<Props> = ({
|
export const ProjectPermissionCan: FunctionComponent<Props> = ({
|
||||||
label = "Permission Denied. Kindly contact your project admin",
|
label = "Access restricted",
|
||||||
children,
|
children,
|
||||||
passThrough = true,
|
passThrough = true,
|
||||||
renderTooltip,
|
renderTooltip,
|
||||||
|
|||||||
+1
-1
@@ -69,7 +69,7 @@ export const CloudIntegrationSection = ({
|
|||||||
) {
|
) {
|
||||||
createNotification({
|
createNotification({
|
||||||
type: "error",
|
type: "error",
|
||||||
text: "Permission Denied. Kindly contact your project admin"
|
text: "You do not have permission to create an integration"
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user