Skip to content

Commit

Permalink
removing feature flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
Courey committed Sep 13, 2024
1 parent 25a589c commit 1967507
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/routes/synonyms/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ import { Outlet } from '@remix-run/react'
import { GridContainer } from '@trussworks/react-uswds'

import { getUser } from '../_auth/user.server'
import { feature } from '~/lib/env.server'

export async function loader({ request }: LoaderFunctionArgs) {
const user = await getUser(request)
const isModerator = user?.groups.includes('gcn.nasa.gov/circular-moderator')

if (!isModerator || !feature('SYNONYMS')) {
if (!isModerator) {
throw new Response(null, {
status: 403,
})
Expand Down

0 comments on commit 1967507

Please sign in to comment.