Skip to content

Commit

Permalink
Subscription is hidden but accessible (#2340)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Nov 2, 2023
1 parent 3f59301 commit c9f25b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion front/components/sparkle/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const subNavigationAdmin = ({
if (isDevelopmentOrDustWorkspace(owner)) {
menus.push({
id: "subscription",
label: "Subscription (Dust only)",
label: "Subscription",
icon: ShapesIcon,
href: `/w/${owner.sId}/subscription`,
current: current === "subscription",
Expand Down
7 changes: 0 additions & 7 deletions front/pages/w/[wId]/subscription/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import AppLayout from "@app/components/sparkle/AppLayout";
import { subNavigationAdmin } from "@app/components/sparkle/navigation";
import { SendNotificationsContext } from "@app/components/sparkle/Notification";
import { Authenticator, getSession, getUserFromSession } from "@app/lib/auth";
import { isDevelopmentOrDustWorkspace } from "@app/lib/development";
import { PlanType, UserType, WorkspaceType } from "@app/types/user";

const { GA_TRACKING_ID = "" } = process.env;
Expand All @@ -33,12 +32,6 @@ export const getServerSideProps: GetServerSideProps<{
};
}

if (!isDevelopmentOrDustWorkspace(owner)) {
return {
notFound: true,
};
}

return {
props: {
user,
Expand Down

0 comments on commit c9f25b4

Please sign in to comment.