Open Closed

Blazor - Hide Permissions from certain users Programmatically #8210


User avatar
0
dhill created
  • ABP Framework version: v8.3.0
  • UI Type: Blazor WASM
  • Database System: EF Core SQL Server

We have a use case where we need to hide some permissions for normal users and only expose them to super users such as the built in admin account or perhaps if the email address matches a certain pattern.

XyzWebPermissionDefinitionProvider seems to only run once at startup.

How can we override this core functionality to hide permissions at runtime?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    ABP Fremework doesn't support your case.

    If you want to hide the permissions on the UI page. You can override the application service.

    https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Application/Volo/Abp/PermissionManagement/PermissionAppService.cs#L0-L1

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.