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: Admin ui accessible by normal user #1854

Conversation

sashko9807
Copy link
Member

@sashko9807 sashko9807 commented Jun 17, 2024

Fix Admin panel being accessible by normal users. Renders NotFoundPage whenever non-admin user attempts to visit /admin/* URL.

Closes api#642

Testing

Steps to test

  1. Login as normal user
  2. Attempt to visit any admin
  3. Should see 404 page not found.

Affected urls

https://podkrepi.bg/admin/*

Its just a cosmetic change. All relevant data is protected by the API with roles
Copy link

github-actions bot commented Jun 17, 2024

✅ Tests will run for this PR. Once they succeed it can be merged.

@ani-kalpachka ani-kalpachka added the run tests Allows running the tests workflows for forked repos label Jun 18, 2024
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Jun 18, 2024
@ani-kalpachka ani-kalpachka merged commit a4ccc0c into podkrepi-bg:master Jun 19, 2024
11 of 12 checks passed
gparlakov pushed a commit to gparlakov/podkrepi-bg-frontend that referenced this pull request Jun 19, 2024
Its just a cosmetic change. All relevant data is protected by the API with roles
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.

Parts of the admin panel visible for the regular user
2 participants