cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
34 stars 13 forks source link

fix: Permissions on Admin pages #3959

Closed bryan-robitaille closed 3 months ago

bryan-robitaille commented 3 months ago

Summary | Résumé

Ensures that only users with "manage all forms" privilege can view the "upload" and "view-templates" pages. Previously the page would start to load and then throw an Access Control Error. These changes now short circuit the page load.

Screenshot 2024-07-05 at 8 37 12 AM

Unresolved questions / Out of scope | Questions non résolues ou hors sujet

Are there any related issues or tangent features you consider out of scope for this issue that could be addressed in the future? If so please create issues and provide links in this section

Pull Request Checklist

Please complete the following items in the checklist before you request a review:

github-actions[bot] commented 3 months ago

:test_tube: Review environment

https://3bajrm4yc6sj62tf7vz4sqj2ma0intqq.lambda-url.ca-central-1.on.aws/