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

Display view licence tabs only to permitted users #949

Conversation

jonathangoulding
Copy link
Collaborator

@jonathangoulding jonathangoulding commented Apr 26, 2024

Display view licence tabs only to permitted users

https://eaflood.atlassian.net/browse/WATER-4432

Part of a series of changes to replace the legacy view licence page

This change will only show the billing and charge information tabs on the view license page if the user has the appropriate role.

@jonathangoulding jonathangoulding self-assigned this Apr 26, 2024
@jonathangoulding jonathangoulding requested review from Cruikshanks and robertparkinson and removed request for Cruikshanks April 29, 2024 13:05
@jonathangoulding jonathangoulding marked this pull request as ready for review April 29, 2024 13:05
@@ -71,7 +71,8 @@ function go (licence, licenceAbstractionConditions) {
registeredTo,
sourceOfSupply: abstractionDetails.sourceOfSupply,
startDate: formatLongDate(startDate),
warning: _generateWarningMessage(ends)
warning: _generateWarningMessage(ends),
roles: _getAuthRoles(auth)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jonathangoulding jonathangoulding force-pushed the view-license-role-based-tabs-for-bills-and-charge-information branch 2 times, most recently from ae89fc5 to fb99f03 Compare April 29, 2024 15:44
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

Just a few corrections and suggestions!

app/controllers/licences.controller.js Show resolved Hide resolved
app/presenters/licences/view-licence.presenter.js Outdated Show resolved Hide resolved
test/presenters/licences/view-licence.presenter.test.js Outdated Show resolved Hide resolved
app/presenters/licences/view-licence.presenter.js Outdated Show resolved Hide resolved
https://eaflood.atlassian.net/browse/WATER-4432

> Part of a series of changes to replace the legacy view licence page

This change will only show the billing and charge information tabs on the view license page if the user has the appropriate role.
@jonathangoulding jonathangoulding force-pushed the view-license-role-based-tabs-for-bills-and-charge-information branch from 0ef4de3 to 42f40e5 Compare April 29, 2024 16:11
@jonathangoulding jonathangoulding changed the title Display bills and charge information tabs only to permitted users Display view licence tabs only to permitted users Apr 29, 2024
@Cruikshanks Cruikshanks added the security Pull requests that address a security vulnerability label Apr 29, 2024
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

@jonathangoulding jonathangoulding merged commit dc5513a into main Apr 30, 2024
6 checks passed
@jonathangoulding jonathangoulding deleted the view-license-role-based-tabs-for-bills-and-charge-information branch April 30, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants