payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
27.66k stars 1.72k forks source link

fix: error when opening admin panel without any permissions #9392

Closed AlessioGr closed 1 day ago

AlessioGr commented 1 day ago

We were getting the following error when opening the create first user page, as sanitizedPermissions is {} if the user has no permissions at all

CleanShot 2024-11-20 at 18 48 46@2x