hi
I didn't receive your mail.
Can you share it by https://wetransfer.com/
Thanks.
hi
If you want to bind List<AssessmentFileColumnDto> Columns
from the querystring
Your querystring should be:
?Columns[0].ColumnName=Name1&Columns[0].From=1&Columns[0].To=5&Columns[1].ColumnName=Name2&Columns[1].From=6&Columns[1].To=10
public class PreviewFixedFileDto
{
public IRemoteStreamContent Content { get; set; }
public List<AssessmentFileColumnDto> Columns { get; set; }
}
public class AssessmentFileColumnDto
{
public string ColumnName { get; set; }
public int From { get; set; }
public int To { get; set; }
}
hi
Error is "UnAuthorized"
Please share the full logs.txt. Include the identity model
and OpenIddict
logs.
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks. liming.ma@volosoft.com
hi
You can use IPermissionDataSeeder
to grant permissions to admin
role.
var multiTenancySide = CurrentTenant.GetMultiTenancySide();
var permissionNames = (await PermissionDefinitionManager.GetPermissionsAsync())
.Where(p => p.MultiTenancySide.HasFlag(multiTenancySide))
.Where(p => !p.Providers.Any() || p.Providers.Contains(RolePermissionValueProvider.ProviderName))
.Select(p => p.Name)
.ToArray();
await PermissionDataSeeder.SeedAsync(
RolePermissionValueProvider.ProviderName,
"admin",
permissionNames,
tenantId
);
https://github.com/abpframework/abp/blob/rel-9.0/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionDataSeedContributor.cs#L28-L40
https://github.com/abpframework/abp/blob/rel-9.0/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/IPermissionDataSeeder.cs#L7
Yes, I will update the template code.
Thanks.
hi sinancondo
You can try running a Redis server in a local Docker container.
docker run -p 6379:6379 --name redis -d redis:alpine
hi sinancondo
Can you share debug logs that use the local Redis server?
liming.ma@volosoft.com
Thanks.
hi
There is no service named IPermissionGrantManager
in the ABP framework.
If you want to check a user's permissions, you can use IPermissionChecker
Thanks.
hi
Can you share full debug logs?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks.