mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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>;
|
||||
|
||||
export const OrgPermissionCan: FunctionComponent<Props> = ({
|
||||
label = "Permission Denied. Kindly contact your org admin",
|
||||
label = "Access restricted",
|
||||
children,
|
||||
passThrough = true,
|
||||
renderTooltip,
|
||||
|
||||
@@ -27,10 +27,10 @@ export const PermissionDeniedBanner = ({ containerClassName, className, children
|
||||
<FontAwesomeIcon icon={faLock} size="6x" />
|
||||
</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 || (
|
||||
<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>
|
||||
|
||||
@@ -18,7 +18,7 @@ type Props = {
|
||||
} & BoundCanProps<any>;
|
||||
|
||||
export const ProjectPermissionCan: FunctionComponent<Props> = ({
|
||||
label = "Permission Denied. Kindly contact your project admin",
|
||||
label = "Access restricted",
|
||||
children,
|
||||
passThrough = true,
|
||||
renderTooltip,
|
||||
|
||||
@@ -69,7 +69,7 @@ export const CloudIntegrationSection = ({
|
||||
) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
text: "Permission Denied. Kindly contact your project admin"
|
||||
text: "You do not have permission to create an integration"
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user