fix 移除无用接口,数据权限增加tenant-admin过滤
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user