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

When get problems before login and then login as an admin, the admin can't see all invisible problems #111

Open
Johnny850807 opened this issue Sep 18, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Johnny850807
Copy link
Contributor

Johnny850807 commented Sep 18, 2021

Replicate

Precondition: Access the website as a guest (If you have logged in, you should first log out and then refresh the page)

  1. Access the problem list: /problems
    --> You should only see the visible problems
  2. Log in as an admin
  3. Access the problem list again: /problems--> (ERROR) You still only see the visible problems even you have logged in as an admin
    (EXPECT): Not only should you see the visible problems but also see the invisible problems (because you are an admin).

Possible Cause

Check the API token and see how AuthHttpRequestInterceptor works

@Johnny850807 Johnny850807 self-assigned this Sep 18, 2021
@Johnny850807 Johnny850807 added the bug Something isn't working label Sep 18, 2021
@Johnny850807 Johnny850807 changed the title [Problems Cache] When get problems before login and then login as an admin, the admin can't see all problems When get problems before login and then login as an admin, the admin can't see all invisible problems Sep 18, 2021
@Johnny850807 Johnny850807 removed their assignment Oct 12, 2021
@Chaoyuuu Chaoyuuu self-assigned this Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants