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?


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

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 v9.3.0-preview. Updated on June 13, 2025, 11:37