Skip to content

Commit

Permalink
Merge pull request #2191 from abilpraju-aot/bugfix/FWF-3587-submissio…
Browse files Browse the repository at this point in the history
…n-route

updated permission for main route
  • Loading branch information
arun-s-aot authored Aug 13, 2024
2 parents ca6d31b + 4870ffb commit 4340e68
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions forms-flow-web/src/components/Form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ const CreateFormRoute = ({ component: Component, ...rest }) => (
const FormSubmissionRoute = ({ component: Component, ...rest }) => (
<Route
{...rest}
render={(props) =>
user.includes('create_submissions') ? (
<Component {...props} />
) : (
<AccessDenied userRoles={user} />
)
render={(props) =>
(<Component {...props} /> )
}
/>
);
Expand Down

0 comments on commit 4340e68

Please sign in to comment.