Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7d531 commit 3b4343dCopy full SHA for 3b4343d
site/src/pages/TemplatePage/TemplateLayout.tsx
@@ -85,9 +85,14 @@ export const TemplateLayout: FC<PropsWithChildren> = ({
85
queryFn: () => fetchTemplate(organizationName, templateName),
86
});
87
const workspacePermissionsQuery = useQuery(
88
- checkAuthorization({
89
- checks: workspacePermissionChecks(organizationName, me.id),
90
- }),
+ data
+ ? checkAuthorization({
+ checks: workspacePermissionChecks(
91
+ data.template.organization_id,
92
+ me.id,
93
+ ),
94
+ })
95
+ : { enabled: false },
96
);
97
98
const location = useLocation();
0 commit comments