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

Visibility should not 404 for current student #593

Open
AlexanderEpolite opened this issue Oct 14, 2024 · 5 comments
Open

Visibility should not 404 for current student #593

AlexanderEpolite opened this issue Oct 14, 2024 · 5 comments

Comments

@AlexanderEpolite
Copy link

AlexanderEpolite commented Oct 14, 2024

With visibility on:
image

Visibility off:
image

This page should still be visible if the hacker being accessed is the same as the one which is logged in. When I go to my page, I see a 404 page when visibility is set to Hidden, which should not happen.

@AlexanderEpolite AlexanderEpolite changed the title Visibility Visibility should not 404 for current student Oct 14, 2024
@AlexanderEpolite
Copy link
Author

To add, pwn.college/hacker returns a 404 when visibility is set to Hidden, even though I am logged in.

@ConnorNelson
Copy link
Member

I agree, this sounds like an issue.

Correct behavior would be that the visibility check for viewing your own profile is bypassed.

Are you also saying that you can’t view other users pages when your own visibility is hidden? Am I getting that right?

@AlexanderEpolite
Copy link
Author

Are you also saying that you can’t view other users pages when your own visibility is hidden? Am I getting that right?

I am saying that I cannot view my own page when my visibility is hidden. Sorry for any confusion, I used your page as an example for this issue.

Additionally, you cannot see yourself on dojo leaderboards when your visibility is hidden.

@adamdoupe
Copy link
Contributor

adamdoupe commented Oct 18, 2024 via email

@ConnorNelson
Copy link
Member

I agree, we can definitely fix the profile.

Unfortunately leaderboard would be trickier because we cache leaderboard calculations for performance reasons, and this would require some changes to that. Possibly we could track the most recent solve so that we could quickly recompute tie-breakers for ordering you, but then you'd see a different ranking than everyone else, and honestly I'm not totally sure that idea really makes sense.

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

No branches or pull requests

3 participants