Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SGID): disallow SGID authentication in storage mode #2468

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

mantariksh
Copy link
Contributor

Problem

SGID is currently not enabled in storage mode, and the settings tab UI prevents users from enabling SGID on a storage mode form. However, SGID email-mode forms can still be duplicated into storage mode while preserving the SGID auth type, resulting in invalid forms which cannot be submitted.

Closes #2390

Solution

Add model-level validation which sets the authType to NIL when attempting to create an SGID form in storage mode.

Manual tests

  • Duplicate an SGID email-mode form into storage mode. The authentication type of the new duplicated form should be NIL.

@mantariksh mantariksh requested review from karrui and tshuli July 29, 2021 07:25
Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mantariksh mantariksh merged commit a1d5885 into develop Jul 29, 2021
@mantariksh mantariksh deleted the fix/sgid-strg-mode branch July 29, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SGID forms can be duplicated into storage mode
2 participants