优化代码
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using Infrastructure;
|
||||
using Infrastructure.Attribute;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using ZR.Model.System;
|
||||
using ZR.Service.System.IService;
|
||||
|
||||
@@ -32,7 +30,7 @@ namespace ZR.Service.System
|
||||
/// <returns>角色权限信息</returns>
|
||||
public List<string> GetRolePermission(SysUser user)
|
||||
{
|
||||
List<string> roles = new List<string>();
|
||||
List<string> roles = new();
|
||||
// 管理员拥有所有权限
|
||||
if (user.IsAdmin())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user