Skip to content

Commit

Permalink
Extra check to check the site is enabled as well as the feature
Browse files Browse the repository at this point in the history
  • Loading branch information
psoleckimoj committed Jul 24, 2024
1 parent 3d9e649 commit 5a1e0aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/routes/adjudications.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const createAdjudicationsRouter = ({ offenderService }) => {

if (
config.features.adjudicationsFeatureEnabled &&
config.sites[req.session.establishmentName].enabled &&
config.sites[req.session.establishmentName].features.includes(
'adjudications',
)
Expand Down Expand Up @@ -67,6 +68,7 @@ const createAdjudicationsRouter = ({ offenderService }) => {

if (
config.features.adjudicationsFeatureEnabled &&
config.sites[req.session.establishmentName].enabled &&
config.sites[req.session.establishmentName].features.includes(
'adjudications',
) &&
Expand Down

0 comments on commit 5a1e0aa

Please sign in to comment.