update denied text

This commit is contained in:
Maidul Islam
2023-09-07 15:18:47 -04:00
committed by Akhil Mohan
parent 9c9d46824c
commit 0f46f53a7d
4 changed files with 5 additions and 5 deletions

View File

@@ -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,

View File

@@ -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>

View File

@@ -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,

View File

@@ -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;
}