Activities of "maliming"

hi

I create a custom permission definition in DB. On next step I assign it to a user role. This next step is impossible until I restart the app (so the list of permission definitions is being actualized).

This sounds simple, and you don't need oracle. You can use sql server.

hi

Can you share a simple project with your above code? liming.ma@volosoft.com

The simpler, the better.

hi

. However the permissions are not assigned...

Did you manually insert data into the AbpPermissionGrants table?

Please explain it in detail. Thanks

hi

Is currentHash changed?

What about hasChangesInGroups and hasChangesInPermissions?

hi

Can you debug the StaticPermissionSaver class?

https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/StaticPermissionSaver.cs#L61

Try to see the changed permissions.

You can copy these code to a new class and call it.

hi

Can you try this?

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(MyMobileNavbarViewComponent), typeof(MobileNavbarViewComponent))]
public class MyMobileNavbarViewComponent : MobileNavbarViewComponent
{
    public MyMobileNavbarViewComponent(IMenuManager menuManager, 
        ICurrentUser currentUser,
        IToolbarManager toolbarManager,
        MenuViewModelProvider menuViewModelProvider,
        IOptions<LeptonXThemeMvcOptions> options) 
        : base(menuManager, currentUser, toolbarManager, menuViewModelProvider, options)
    {
    }

    public override async Task<IViewComponentResult> InvokeAsync()
    {
        var mainMenu = await MenuViewModelProvider.GetMenuViewModelAsync();

        var toolbar = await ToolbarManager.GetAsync(StandardToolbars.Main);
        var leptonxToolbar = await ToolbarManager.GetAsync(LeptonXToolbars.MainMobile);

        toolbar.Items.AddRange(leptonxToolbar.Items);

        return View("~/Themes/LeptonX/Components/SideMenu/MobileNavbar/Default.cshtml", new MobileNavbarViewModel
        {
            UserMenu = await MenuManager.GetAsync(StandardMenus.User),
            ProfileImageUrl = $"/api/account/profile-picture-file/{CurrentUser.Id}",
            SelectedMenuItems = Options.MobileMenuSelector(mainMenu.Items.AsReadOnly()).Take(2).ToList(),
            Toolbar = toolbar
        });
    }
}

hi cables

Can you try to upgrade to 7.3.x and try again?

Thanks

Your question credit has been refunded.

hi

I will fix this. You can override the MobileNavbarViewComponent to solve it now.

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX.Navigation;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Toolbars;
using Volo.Abp.LeptonX.Shared;
using Volo.Abp.UI.Navigation;
using Volo.Abp.Users;

namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX.Themes.LeptonX.Components.SideMenu.MobileNavbar;

public class MobileNavbarViewComponent : LeptonXViewComponentBase
{
    protected IMenuManager MenuManager { get; }

    protected ICurrentUser CurrentUser { get; }

    protected IToolbarManager ToolbarManager { get; }

	protected MenuViewModelProvider MenuViewModelProvider { get; }
    public LeptonXThemeMvcOptions Options { get; }

    public MobileNavbarViewComponent(
        IMenuManager menuManager,
        ICurrentUser currentUser,
        IToolbarManager toolbarManager,
        MenuViewModelProvider menuViewModelProvider,
        IOptions<LeptonXThemeMvcOptions> options)
    {
        MenuManager = menuManager;
        CurrentUser = currentUser;
        ToolbarManager = toolbarManager;
        MenuViewModelProvider = menuViewModelProvider;
        Options = options.Value;
    }

    public virtual async Task<IViewComponentResult> InvokeAsync()
    {
        var mainMenu = await MenuViewModelProvider.GetMenuViewModelAsync();

        var toolbar = await ToolbarManager.GetAsync(StandardToolbars.Main);
        var leptonxToolbar = await ToolbarManager.GetAsync(LeptonXToolbars.MainMobile);

        toolbar.Items.AddRange(leptonxToolbar.Items);

        return View("~/Themes/LeptonX/Components/SideMenu/MobileNavbar/Default.cshtml", new MobileNavbarViewModel
        {
            UserMenu = await MenuManager.GetAsync(StandardMenus.User),
            ProfileImageUrl = $"/api/account/profile-picture-file/{CurrentUser.Id}",
            SelectedMenuItems = Options.MobileMenuSelector(mainMenu.Items.AsReadOnly()).Take(2).ToList(),
            Toolbar = toolbar
        });
    }
}

hi

Can you use the latest 2.3.2 as Leptonx package version for all projects?

Showing 5631 to 5640 of 10651 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20