GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BUG: admin page visible for non logged-in users · Issue #473 · hackjunction/JunctionApp

BUG: admin page visible for non logged-in users #473

New issue
Copy link
New issue
Copy link
Open
Open
BUG: admin page visible for non logged-in users#473
Copy link
Labels
bugSomething isn't workingurgentNotice me

Description

@pholm
pholm
opened on Aug 4, 2021
Issue body actions

🐛 Bug Report

What went wrong? 🤔

User can access https://app.hackjunction.com/admin without logging in. Fortunately, the actions check if the user has required permissions, so it seems no damage can be done.

Expected Behavior

App should check the permissions before accessing a page.

Actual Behavior

The page is shown, if the user happens to know the URL.

Steps to Reproduce Issue

  1. Log out
  2. Navigate to https://app.hackjunction.com/admin
  3. Avot

Solution

Check permissions before routing the user.

Environment

Operating System

macOS Monterey

Browser

Chrome

Activity

  1. pholm
    added
    bugSomething isn't working
    urgentNotice me
    on Aug 4, 2021
  2. pholm
    changed the title [-]BUG: admin page visible for non-logged in users[/-] [+]BUG: admin page visible for non logged-in users[/+] on Aug 4, 2021
  3. khenriksson commented on Aug 25, 2021

    @khenriksson
    khenriksson
    on Aug 25, 2021
    Collaborator
    More actions

    There's a component called RequiresRole.js, could probably be used in routes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingurgentNotice me

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.