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

First of two fixes for bug #5726: hide nominate for deletion when logged out #5773

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

djbloop
Copy link
Contributor

@djbloop djbloop commented Jul 15, 2024

Fixes #5726

What changes did you make and why?
Added more if statements into "onDeletionPageExists" function so that guest users won't have the capability to nominate an image for deletion.

Tests performed (required)
Manually tested by compiling and running the app (As guest and logged in)
I also ran the UnitTests in which all of them passed

Tested {build variant, e.g. ProdDebug} on {What Emulator used} with API level {Level}.

  • Build Variant: prod
  • Android Studio Emulator
  • 8.0.2

Screenshots (for UI changes only)
When the user isn't logged in
image

When the user is logged in
image

Need help? See https://support.google.com/android/answer/9075928


Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

Tested both logged out and logged in. Working great, thanks!

@nicolas-raoul nicolas-raoul merged commit 31bb1a7 into commons-app:main Aug 26, 2024
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.

[Bug]: Don't show nominate for deletion / edit category and edit depicts for logged out users
2 participants