OK, I will check it asap.
hi
https://github.com/abpframework/abp/issues/13983
hi
Please share your azure configuration info and test account&password to liming.ma@volosoft.com
hi
Can you check the ajax response of GetListAsync
in your angular app?
hi
I don't see the problem from the code. You can simply try your idea in the template project and if you find a problem, we can fix it.
Thanks @woodyarray
Is it possible to reproduce the problem using the brand new template project?
user "user1" has role "role1" User "user1" belongs to orgnization unit "org1" after login for a entity how we can filter data based on user "role" or "organization unit"
hi
where
to filter based on the 1 and 2 results.sorry,
var defaultLanguage = await _settingProvider.GetOrNullAsync(LocalizationSettingNames.DefaultLanguage);
var (cultureName, uiCultureName) = LocalizationSettingHelper.ParseLanguageSetting(defaultLanguage);
using (CultureHelper.Use(CultureInfo.GetCultureInfo(cultureName)))
{
GenerateViolationReport()
}
hi
Add the below code to your web project.
This may cause issues, because by design the key name in the dictionary is not camelCase
Configure<JsonOptions>(options =>
{
options.JsonSerializerOptions.Converters.Add(new MyJsonConverter());
});
public class MyJsonConverter : JsonConverter<IdentityUserDto>
{
private JsonSerializerOptions _readJsonSerializerOptions;
private JsonSerializerOptions _writeJsonSerializerOptions;
public override IdentityUserDto Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
_readJsonSerializerOptions ??= new JsonSerializerOptions(options)
{
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase
};
_readJsonSerializerOptions.Converters.RemoveAll(x => x.GetType() == typeof(MyJsonConverter));
return JsonSerializer.Deserialize(ref reader, typeToConvert, _readJsonSerializerOptions).As<IdentityUserDto>();
}
public override void Write(Utf8JsonWriter writer, IdentityUserDto value, JsonSerializerOptions options)
{
_writeJsonSerializerOptions ??= new JsonSerializerOptions(options)
{
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase
};
_writeJsonSerializerOptions.Converters.RemoveAll(x => x.GetType() == typeof(MyJsonConverter));
JsonSerializer.Serialize(writer, value, _writeJsonSerializerOptions);
}
}