We are trying to find the cause of the problem, maybe there is a bug in your implementation, it will work after you fix it.
No problem.
hi
we use ABP cache in each app and sync them via RabbitMQ. Does it make the difference?
I don't think this is good practice, You can try to using Redis.
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
});
}
}