update denied text

This commit is contained in:
Maidul Islam
2023-09-08 21:22:36 +05:30
committed by Akhil Mohan
parent 9c9d46824c
commit 0f46f53a7d
4 changed files with 5 additions and 5 deletions
@@ -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,
@@ -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;
} }