[WEB-2543] chore: workspace inbox guest permission (#5695)
* chore: workspace inbox permission updated * chore: workspace inbox permission updated * chore: code refactor * chore: code refactor
This commit is contained in:
parent
85f7483b1b
commit
22623fad33
4 changed files with 10 additions and 9 deletions
|
|
@ -145,11 +145,12 @@ export const IssueView: FC<IIssueView> = observer((props) => {
|
|||
"0px 4px 8px 0px rgba(0, 0, 0, 0.12), 0px 6px 12px 0px rgba(16, 24, 40, 0.12), 0px 1px 16px 0px rgba(16, 24, 40, 0.12)",
|
||||
}}
|
||||
>
|
||||
{isLoading && <IssuePeekOverviewLoader removeRoutePeekId={removeRoutePeekId} />}
|
||||
{isError && (
|
||||
{isError ? (
|
||||
<div className="relative h-screen w-full overflow-hidden">
|
||||
<IssuePeekOverviewError removeRoutePeekId={removeRoutePeekId} />
|
||||
</div>
|
||||
) : (
|
||||
isLoading && <IssuePeekOverviewLoader removeRoutePeekId={removeRoutePeekId} />
|
||||
)}
|
||||
{!isLoading && !isError && issue && (
|
||||
<>
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ export const SIDEBAR_USER_MENU_ITEMS: {
|
|||
key: "notifications",
|
||||
label: "Inbox",
|
||||
href: `/notifications`,
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
|
||||
highlight: (pathname: string, baseUrl: string) => pathname.includes(`${baseUrl}/notifications/`),
|
||||
Icon: Inbox,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const nextConfig = {
|
|||
value: "origin-when-cross-origin",
|
||||
},
|
||||
{ key: "Cross-Origin-Opener-Policy", value: "same-origin" },
|
||||
{ key: "Cross-Origin-Embedder-Policy", value: "require-corp" },
|
||||
{ key: "Cross-Origin-Embedder-Policy", value: "credentialless" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue