Skip to content

[Bug] Admin dashboard broken in Strapi v5 – checkUserHasPermissions errors / TypeError: checkUserHasPermissions is not a function in Strapi v5 admin dashboard #24760

@riyabhurki

Description

@riyabhurki

Node Version
20.0.0

NPM/Yarn/PNPM Version
NPM

Strapi Version
5.28.0

Operating System
MacOS

Database
PostgreSQL

Javascript or Typescript
Typescript

Bug Description
When opening the Strapi admin dashboard (v5.28.0), the Content-Type Builder, Content Manager, and Media Library fail to load. The following errors appear in the console:

TypeError: checkUserHasPermissions is not a function
TypeError: Cannot read properties of undefined (reading 'tours')

Creating a new super admin user or resetting credentials does not resolve the issue. API tokens and permissions are not visible in the admin panel, and entries cannot be added through the dashboard.

Steps Taken / Commands Tried:
I have already tried the following steps to fix the issue:
rm -rf node_modules
rm -rf build
rm -rf .cache
rm -rf dist
npm install
npm run build
npm run develop

Despite these attempts, the admin dashboard still fails to load correctly.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions