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

Show view permissions link even when updatable #3019

Conversation

yndajas
Copy link
Member

@yndajas yndajas commented Jul 11, 2024

Trello

Previously on the applications pages the view permissions link wouldn't show if the user could edit permissions. However, we'll soon fix delegatable permissions, which will mean that publishing managers will only see delegatable permissions on the update permissions page. It would be useful for them to be able to see all permissions, even if they can't grant non-delegatable ones, so we should show the view link regardless of update authorisation

Screenshots

Before

image

After

image

This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@yndajas yndajas force-pushed the 1184a-delegatable-permissions-fixes-and-improvements branch from 607e893 to f47036c Compare July 11, 2024 16:45
@yndajas yndajas force-pushed the 1184b-always-show-view-permissions-link branch from 239f98e to 8c559b4 Compare July 11, 2024 16:45
@yndajas yndajas marked this pull request as ready for review July 11, 2024 16:51
Copy link
Member Author

@yndajas yndajas left a comment

Choose a reason for hiding this comment

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

The account and users applications controller tests should be updated here

@yndajas yndajas marked this pull request as draft July 12, 2024 09:27
@yndajas yndajas force-pushed the 1184b-always-show-view-permissions-link branch from 8c559b4 to 63ea311 Compare July 12, 2024 12:40
@yndajas yndajas force-pushed the 1184a-delegatable-permissions-fixes-and-improvements branch from f47036c to d1b2aae Compare July 12, 2024 12:40
@yndajas yndajas force-pushed the 1184b-always-show-view-permissions-link branch from 63ea311 to dc64a1d Compare July 12, 2024 17:16
Previously on the applications pages the view permissions link wouldn't
show if the user could edit permissions. However, we'll soon fix
delegatable permissions, which will mean that publishing managers will
only see delegatable permissions on the update permissions page. It
would be useful for them to be able to see all permissions, even if they
can't grant non-delegatable ones, so we should show the view link
regardless of update authorisation
@yndajas yndajas force-pushed the 1184b-always-show-view-permissions-link branch from dc64a1d to fe9cd78 Compare July 12, 2024 17:19
@yndajas yndajas marked this pull request as ready for review July 12, 2024 17:21
@yndajas yndajas merged commit 11fe972 into 1184a-delegatable-permissions-fixes-and-improvements Jul 18, 2024
15 checks passed
@yndajas yndajas deleted the 1184b-always-show-view-permissions-link branch July 18, 2024 08:53
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