Starts in:
1 DAY
1 HR
4 MIN
17 SEC
Starts in:
1 D
1 H
4 M
17 S
Open Closed

Hide Identity User Extended property when Tenant doesn't have the Feature enabled #7519


User avatar
0
HaydenFerries created

Hello I am trying to hide a Identity User Extended property based on whether or not the Tenant has a specific feature enabled.

I am using Volo.Abp.Identity.Pro and Volo.Abp.FeatureManagement 7.2.2 Here is my extended property within the ModuleExtensionConfigurator:

   ObjectExtensionManager.Instance.Modules().ConfigureIdentity(identity =>
    {
        identity.ConfigureUser(user =>
        {
            user.AddOrUpdateProperty<bool>( //property type: string
                EnformIdentityUserConsts.MidModeration, //property name
                property =>
                {
                    property.DisplayName = LocalizableString.Create<ePlusResource>("Mid Moderation");
                    property.DefaultValue = true;
                    
                    property.Api.OnGet.IsAvailable = false;
                    property.Api.OnCreate.IsAvailable = true;
                    property.Api.OnUpdate.IsAvailable = false;

                    property.UI.OnTable.IsVisible = false;
                    property.UI.OnCreateForm.IsVisible = true;
                    property.UI.OnEditForm.IsVisible = false;
                }
            );
        });
    });
  • ABP Framework version: v7.2.2
  • UI Type: Angular
  • Database System: EF Core SQL Serve
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Steps to reproduce the issue:
  • Create a Feature within the FeatureDefinitionProvider
  • Add identity extension within the ModuleExtensionConfigurator
  • This property will always show regardless of the feature being active

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

    hi

    It's not supported at the moment, I've created an issue, we'll consider it in the next release.

    https://github.com/abpframework/abp/issues/20245

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06