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

Bug/53344 cannot modify a query that was created by a deleted user #15258

Conversation

dombesz
Copy link
Contributor

@dombesz dombesz commented Apr 15, 2024

https://community.openproject.org/wp/53344

Addresses the issue reported here.

When an admin makes another user's public query private, it will no longer have access to it. Currently the logic is to reload the changed query, but since the admin user doesn't have access to the query anymore, the page renders a permission error.
This can be a confusing behaviour, and this PR changes the logic to navigate the browser to the default work packages view, instead of refreshing the inaccessible query.

@dombesz dombesz force-pushed the bug/53344-cannot-modify-a-query-that-was-created-by-a-deleted-user branch 4 times, most recently from bb19231 to 2c4fa94 Compare April 15, 2024 15:34
@dombesz dombesz marked this pull request as ready for review April 16, 2024 10:52
…s been made private

https://community.openproject.org/work_packages/53344

This covers an edge case, when an adminitrator makes another user's query private.
In this case, the query becomes accessible only by its creator. We will try to reload
the query after the save happens, but since the query is not accessible, a confusing error
message is rendered. In order to avoid this error message, we are redirecting the admin to
the default query page if the query becomes private and not accessible.
@dombesz dombesz force-pushed the bug/53344-cannot-modify-a-query-that-was-created-by-a-deleted-user branch from 2c4fa94 to 8234537 Compare April 16, 2024 10:53
@dombesz dombesz added this to the 14.0.x milestone Apr 19, 2024
@cbliard cbliard merged commit 47c725b into release/14.0 Apr 19, 2024
11 checks passed
@cbliard cbliard deleted the bug/53344-cannot-modify-a-query-that-was-created-by-a-deleted-user branch April 19, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants