Thanks for your solution.
I have added following code into default.cshtml and top.cshtml
@for (var i = 0; i < Model.Menu.Items.Count; i++)
{
var menuItem = Model.Menu.Items[i];
*** if (!menuItem.IsVisible)
{
continue;
}***
@await Html.PartialAsync("Components/AppMenu/_UserMenuItem", new UserMenuItemViewModel
{
MenuItem = menuItem,
MenuItemIndex = i,
RootLevel = true,
CurrentPageName = Model.CurrentPageName
})
}
Hi yekalkan,
Could you please give me more details to fix it.
develop environment Abp zero 7.2.3 Redtool 2.04 vs2017 win10 eng
Hi maliming,
ANSI encoding by default. All files generated with Redtool are also ANSI encoding.
hi maliming,
i just use red tools add a entity and add some code in appdbcontext.cs。
the MayHaveOrganizationUnit data filter is working correct.
but when i remove the express from CreateFilterExpression method and add SetFilterParameter method in entity application service, that is not working.
how can i share the code? need whiole solution?
product vesion:asp.net core mvc jquery 7.2.3
Hi maliming,
if i use red tools to add a OrganizationUnit's Navigation Properties, that mean is same as use IMustHaveOranizationUnit?
Hi maliming,
thank you for your support.
latest codeing:
file: AppLdapAuthenticationSource.cs public class AppLdapSettings : LdapSettings { protected new ISettingManager SettingManager { get; }
public AppLdapSettings(ISettingManager settingManager) : base(settingManager)
{
SettingManager = settingManager;
}
public override async Task<string> GetPassword(int? tenantId)
{
if (tenantId.HasValue)
{
var ldapPassword = await SettingManager.GetSettingValueForTenantAsync(LdapSettingNames.Password, tenantId.Value);
return SimpleStringCipher.Instance.Decrypt(ldapPassword);
}
else
{
var ldapPassword = await SettingManager.GetSettingValueForApplicationAsync(LdapSettingNames.Password);
return SimpleStringCipher.Instance.Decrypt(ldapPassword);
}
}
}
file: XunyisoftSmartAppCoreModule.cs //Enable LDAP authentication (It can be enabled only if MultiTenancy is disabled!) IocManager.Register<ILdapSettings, AppLdapSettings>(); Configuration.Modules.ZeroLdap().Enable(typeof(AppLdapAuthenticationSource));