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

FMFR-1323-allow-update-of-the-account-status #3494

Merged

Conversation

@domducsutcliffe domducsutcliffe changed the title Added functionality to the account status change button FMFR-1323-allow-update-of-the-account-status Jan 17, 2023
Copy link
Collaborator

@tim-s-ccs tim-s-ccs left a comment

Choose a reason for hiding this comment

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

One small change and then I will approve

@@ -40,9 +40,9 @@
<dd class="govuk-summary-list__value">
<%= govuk_tag_with_text(*enabled_disabled_status_tag(@user.account_status)) %>
</dd>
<% if can_edit_user? %>
<% if can_edit_user? && permitted_sections.include?(:account_status) %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why have you added this? Is there an admin user type who cannot edit the account status?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true no good reason

@@ -40,9 +40,9 @@
<dd class="govuk-summary-list__value">
<%= govuk_tag_with_text(*enabled_disabled_status_tag(@user.account_status)) %>
</dd>
<% if can_edit_user? %>
<% if can_edit_user%>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You've taken too much off

Suggested change
<% if can_edit_user%>
<% if can_edit_user? %>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

di fixed

@domducsutcliffe domducsutcliffe force-pushed the feature/FMFR-1323-allow-update-of-the-account-status branch from 5936c2a to 2165154 Compare January 17, 2023 16:27
@domducsutcliffe domducsutcliffe merged commit 8c8267b into master Jan 17, 2023
@domducsutcliffe domducsutcliffe deleted the feature/FMFR-1323-allow-update-of-the-account-status branch January 17, 2023 16:43
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.

2 participants