hi
Can you test this?
protected List<PermissionGrantInfoDto> GetChildPermissions(PermissionGroupDto permissionGroup, PermissionGrantInfoDto permission)
{
var childPermissions = new List<PermissionGrantInfoDto>();
GetChildPermissions(childPermissions, permissionGroup.Permissions, permission);
return childPermissions;
}
protected void GetChildPermissions(List<PermissionGrantInfoDto> allChildPermissions, List<PermissionGrantInfoDto> permissions, PermissionGrantInfoDto permission)
{
var childPermissions = permissions.Where(x => x.ParentName == permission.Name).ToList();
if (childPermissions.Count == 0)
{
return;
}
allChildPermissions.AddRange(childPermissions);
foreach (var childPermission in childPermissions)
{
GetChildPermissions(allChildPermissions, permissions, childPermission);
}
}
好的
hi
Is this a naming convention for the permissions that Abp enforces? If so, could you link us the documentation that defines this naming convention?
No. But this is a recommended approach.
you can consider changing this logic, I will also check it to see if we can enhance it.
protected List<PermissionGrantInfoDto> GetChildPermissions(PermissionGroupDto permissionGroup, PermissionGrantInfoDto permission)
{
return permissionGroup.Permissions.Where(x => x.Name.StartsWith(permission.Name)).ToList();
}
App logs:
YourWebHostProject/Logs/logs.txt
Suite logs: C:\Users\usernmae.abp\suite\logs
hi
You can create a class to wrap Queue. : )
hi
We don't know the Golang. Sorry.
Task was cancelled
Please set the log level to Debug and share the request logs. Thanks
liming.ma@volosoft.com
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
hi
try to use CacheName on your cache item class.
using Volo.Abp.Caching;
namespace MyProject
{
[CacheName("Books")]
public class BookCacheItem
{
public string Name { get; set; }
public float Price { get; set; }
}
}
你先分享一下内部服务器错误的日志.
hi
Could you help me to review DruidAIBlazorModule, did I make any wrong?
Please find a way to reproduce in a new project.
I haven't understood your JWT design yet.
Thanks.
hi
You can override the PermissionManagementModal by https://github.com/abpframework/abp/pull/18681/files