|
|
@@ -338,7 +338,7 @@ public class SysMenuService : IDynamicApiController, ITransient
|
|
|
if (permissions != null) return permissions;
|
|
|
|
|
|
var menuIdList = _userManager.SuperAdmin ? new() : await GetMenuIdList();
|
|
|
- if (menuIdList.Count <= 0 && !_userManager.SuperAdmin)
|
|
|
+ if (menuIdList.Count <= 0 && !_userManager.SuperAdmin && !_userManager.SysAdmin)
|
|
|
{
|
|
|
//_sysCacheService.Set(CacheConst.KeyUserButton + userId, new List<string>(), TimeSpan.FromDays(7));
|
|
|
return new List<string>();
|