fix 移除无用接口,数据权限增加tenant-admin过滤

This commit is contained in:
2024-07-03 16:18:57 +08:00
parent 16fe03edcb
commit 3fa486cfb4
4 changed files with 4 additions and 73 deletions

View File

@@ -23,7 +23,8 @@ public class GetDataPermissionService : IGetDataPermissions, ISingletonDependenc
public Dictionary<string, List<Guid>> GetData<T>()
{
var dict = new Dictionary<string, List<Guid>>(2);
if (_currentUser.GetRole() == "admin")
var currentRole = _currentUser.GetRole();
if (currentRole is "admin" or "tenant-admin")
{
return dict;
}