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

KG/JM - (Production Bug) A NoMethodError occurred in protocols#new [#… #1019

Merged
merged 1 commit into from Jul 26, 2017

Conversation

jwiel86
Copy link
Contributor

@jwiel86 jwiel86 commented Jul 21, 2017

@jwiel86 jwiel86 force-pushed the jm-authorize-identity-production-bug branch from 8f40566 to 4b46243 Compare July 24, 2017 12:05
@@ -188,7 +188,7 @@ def authorize_identity
return true
end
# the service request is in first draft and has yet to be submitted (catalog page only)
elsif @service_request.status == 'first_draft'
elsif @service_request.status == 'first_draft' && controller_name == 'service_requests' && action_name == 'catalog'
Copy link
Contributor

Choose a reason for hiding this comment

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

For anyone curious, the reason this didn't work is because a @service_request.status could be first_draft in the catalog (homepage), protocol page (step 1), or creating a new protocol in proper. The old code would allow a user to access both step 1 and the new protocol form without logging in. Step 1 wasn't causing any issues from what I can tell, but the new protocol form broke because it called current_user.

Now, users are limited to the homepage without logging in.

@Stuart-Johnson Stuart-Johnson merged commit 2a26fbb into master Jul 26, 2017
@Stuart-Johnson Stuart-Johnson deleted the jm-authorize-identity-production-bug branch July 26, 2017 15:06
@jwiel86 jwiel86 restored the jm-authorize-identity-production-bug branch July 27, 2017 15:26
@Stuart-Johnson Stuart-Johnson deleted the jm-authorize-identity-production-bug branch March 12, 2018 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants