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

Fix link edit/delete buttons showing when not logged in #403

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

sea-kelp
Copy link
Collaborator

@sea-kelp sea-kelp commented Jan 5, 2024

Description of Changes

Currently, the link edit and delete buttons show up on the officer page when visiting as an anonymous user. (see: https://openoversight.tech-bloc-sea.dev/officers/96)

This is NOT a security issue as the user is asked to log in after clicking the link but may be confusing to users.

Notes for Deployment

None!

Screenshots (if appropriate)

N/A

Tests and linting

  • I have rebased my changes on main

  • just lint passes

  • just test passes

@sea-kelp sea-kelp requested a review from a team as a code owner January 5, 2024 11:00
michplunkett pushed a commit to lucyparsons/OpenOversight that referenced this pull request Jan 5, 2024
## Fixes issue
Fixes #1085

## Description of Changes
This is a cherry-pick of
OrcaCollective#403

---

Currently, the link edit and delete buttons show up on the officer page
when visiting as an anonymous user. (see:
https://openoversight.com/officers/83835)

This is NOT a security issue as the user is asked to log in after
clicking the link but may be confusing to users.

## Notes for Deployment
None!

## Screenshots (if appropriate)
N/A

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
Copy link

@michplunkett michplunkett left a comment

Choose a reason for hiding this comment

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

Just in case this approval does the trick.

Edit: It was worth a shot, I suppose.

Copy link
Collaborator

@AetherUnbound AetherUnbound left a comment

Choose a reason for hiding this comment

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

Nice catch!

@AetherUnbound AetherUnbound merged commit ddcdca9 into main Feb 5, 2024
2 checks passed
@AetherUnbound AetherUnbound deleted the fix/link-buttons-visible branch February 5, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants