-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Authenticated Pages and Layouts (#4978)
* securityQuestions lib * security questions tests update * remove AccessControlError from barrel file. * update securityQuestions actions * update flags lib * invitations and users * move unauthorized page * appSettings and authenticated actions * fix: add authentication check to checkIfClosed server action * chore: AuthenticatedAction wrapper pass session when calling inner action * fix: prevent user from requesting permission to publish forms if they already have it * fix: add missing authentication check in settings server actions * fix: add missing authentication + privilege checks in manage server actions * chore: migrate all appropriate server actions to use the new AuthenticatedAction wrapper * feat: add missing audit logs when modifying throttling rate on a form set to deliver responses through API method * chore: remove unnecessary use of getAbility function * fix: broken unit tests due to refactoring around getAbility * chore: refactor custom AccessControlError class to avoid using a promise to get the user identifier * Authenticate Page and Layout * fix: preview page should handle non authenticated users * Authenticated Layout and Pages wrapper * update unlock-publishing * update typing * clean up * add type check * align with privileges requested on page * Align thottling privileges with page * remove force typing * fix logic on publish priv check * Add helper to check for publish forms priv * refactor - rename authorization publish priv check * Add auth wrapper to unauthorized page * refactor: convert checkIfClosed function from server action to simple lib function * fix: misuse of new AccessControlError constructor * chore: remove useless mocks * refactor: delete unused server actions * refactor: delete unused refreshKey server action/lib function * refactor: remove not needed server action for view templates page * refactor: remove not needed server action for view accounts page * refactor: remove not needed server action for application settings page * refactor: remove not needed server action for form settings page * refactor: convert some server actions to regular lib functions --------- Co-authored-by: Clément Janin <[email protected]>
- Loading branch information
1 parent
f7ae839
commit 4c9bcf2
Showing
82 changed files
with
1,643 additions
and
2,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.