Base44 auth

Role-Based Access Control Not Restricting Pages in Base44

You have configured roles in your Base44 application (such as Admin, Editor, Viewer) but users are still able to access pages and perform actions that should be restricted to specific roles. The role-based access control appears to have no effect.

This is a critical security issue, especially for apps handling sensitive data. You may notice that regular users can access admin dashboards, edit records they should only be able to view, or see navigation items that should be hidden from their role.

The problem can be inconsistent: sometimes access is properly blocked on one page but not on another, or it works in the editor preview but fails in the published app.

Common Causes

  1. Page-level access rules were set but component-level or data-level access rules were not configured
  2. Role names in access rules don't exactly match the role names assigned to users (case sensitivity)
  3. The app relies on hiding UI elements rather than enforcing server-side access checks on the data
  4. A default role assignment is missing, so new users get no role and bypass role checks entirely
  5. Access rules were configured in the editor but not re-published to the live app

How to Fix It

Review your role configuration to ensure role names match exactly between user assignments and page/component access rules. Base44 may treat roles as case-sensitive strings.

Check that you have applied access restrictions at both the page level and the data level. Hiding a navigation link is not enough; the underlying data queries and actions must also be restricted.

Ensure every new user is assigned a default role upon signup. Users without a role may unexpectedly bypass access checks. For complex multi-role setups, consider having an expert audit your access control configuration to prevent security gaps.

Real developers can help you.

Richard McSorley Richard McSorley Full-Stack Software Engineer with 8+ years building high-performance applications for enterprise clients. Shipped production systems at Walmart (4,000+ stores), Cigna (20M+ users), and Arkansas Blue Cross. 5 patents in retail/supply chain tech. Currently focused on AI integrations, automation tools, and TypeScript-first architectures. legrab legrab I'll fill this later zipking zipking I am a technologist and product builder dedicated to creating high-impact solutions at the intersection of AI and specialized markets. Currently, I am focused on PropScan (EstateGuard), an AI-driven SaaS platform tailored for the Japanese real estate industry, and exploring the potential of Archify. As an INFJ-T, I approach development with a "systems-thinking" mindset—balancing technical precision with a deep understanding of user needs. I particularly enjoy the challenge of architecting Vertical AI SaaS and optimizing Small Language Models (SLMs) to solve specific, real-world business problems. Whether I'm in a CTO-level leadership role or hands-on with the code, I thrive on building tools that turn complex data into actionable value. Stanislav Prigodich Stanislav Prigodich 15+ years building iOS and web apps at startups and enterprise companies. I want to use that experience to help builders ship real products - when something breaks, I'm here to fix it. Costea Adrian Costea Adrian Embedded Engineer specilizing in perception systems. Latest project was a adas camera calibration system. Mehdi Ben Haddou Mehdi Ben Haddou - Founder of Chessigma (1M+ users) & many small projects - ex Founding Engineer @Uplane (YC F25) - ex Software Engineer @Amazon and @Booking.com Daniel Vázquez Daniel Vázquez Software Engineer with over 10 years of experience on Startups, Government, big tech industry & consulting. Caio Rodrigues Caio Rodrigues I'm a full-stack developer focused on building practical and scalable web applications. My main experience is with **React, TypeScript, and modern frontend architectures**, where I prioritize clean code, component reusability, and maintainable project structures. I have strong experience working with **dynamic forms, state management (Redux / React Hook Form), and complex data-driven interfaces**. I enjoy solving real-world problems by turning ideas into reliable software that companies can actually use in their daily operations. Beyond coding, I care about **software quality and architecture**, following best practices for componentization, code organization, and performance optimization. I'm also comfortable working across the stack when needed, integrating APIs, handling business logic, and helping transform prototypes into production-ready systems. My goal is always to deliver solutions that are **simple, efficient, and genuinely useful for the people using them.** Prakash Prajapati Prakash Prajapati I’m a Senior Python Developer specializing in building secure, scalable, and highly available systems. I work primarily with Python, Django, FastAPI, Docker, PostgreSQL, and modern AI tooling such as PydanticAI, focusing on clean architecture, strong design principles, and reliable DevOps practices. I enjoy solving complex engineering problems and designing systems that are maintainable, resilient, and built to scale. Bastien Labelle Bastien Labelle Full stack dev w/ 20+ years of experience

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help

Frequently Asked Questions

Why can regular users still see my admin pages in Base44?

You likely need to set access rules at both the page level and the data/component level. Just hiding navigation links doesn't prevent direct URL access.

How do I set up roles correctly in Base44?

Define your roles in the authentication settings, assign a default role for new signups, then apply page-level and data-level access rules using those exact role names.

Related Base44 Issues

Can't fix it yourself?
Real developers can help.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help