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

admin disable: true does not disable admin #10284

Open
yulolimum opened this issue Dec 31, 2024 · 1 comment
Open

admin disable: true does not disable admin #10284

yulolimum opened this issue Dec 31, 2024 · 1 comment
Assignees

Comments

@yulolimum
Copy link

Describe the Bug

Hello!

According to the docs, the following property should disable the admin:

disable | If set to true, the entire Admin Panel will be disabled.

This however has no effect and the admin is still accessible.

Link to the code that reproduces this issue

https://github.com/yulolimum/tmp-payload-admin-disabled-repro

Reproduction Steps

  1. Clone repo
git clone [email protected]:yulolimum/tmp-payload-admin-disabled-repro.git
  1. Install deps
yarn
  1. Start server
yarn dev
  1. Navigate to admin in browser

    • Observe - admin is visible
  2. Login using u:[email protected] p:Password1!

    • Observe - admin pages are visible

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Binaries:
  Node: 22.12.0
  npm: 10.9.0
  Yarn: 4.6.0
  pnpm: N/A
Relevant Packages:
  payload: 3.12.0
  next: 15.1.3
  @payloadcms/email-nodemailer: 3.12.0
  @payloadcms/graphql: 3.12.0
  @payloadcms/next/utilities: 3.12.0
  @payloadcms/payload-cloud: 3.12.0
  @payloadcms/richtext-lexical: 3.12.0
  @payloadcms/translations: 3.12.0
  @payloadcms/ui/shared: 3.12.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
@yulolimum yulolimum added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 31, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Dec 31, 2024
@jmikrut
Copy link
Member

jmikrut commented Dec 31, 2024

Hey @yulolimum — we'll get on this. In the meantime, you can just delete the app/(payload)/admin folder which will disable the admin panel.

@JessChowdhury let's try and determine which touchpoints we need to deal with in order to respect this property once again now that we're on 3.0!

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