hutongqing
2024-08-28 d0f01f571918ae942349068776fa7fb70f3ab5cd
WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs
@@ -132,8 +132,7 @@
            string message = "";
            try
            {
                UserInfo user = App.User.GetCurrentUserInfo();
                if (!GetAllChildren(user.RoleId).Exists(x => x.Id == roleId))
                if (!GetAllChildren(App.User.RoleId).Exists(x => x.Id == roleId))
                    return WebResponseContent.Instance.Error("没有权限修改此角色的权限信息");
                //当前用户的权限
                List<Permissions> permissions = _MenuRepository.GetPermissions(App.User.RoleId);
@@ -166,9 +165,9 @@
                            AuthValue = string.Join(",", arr),
                            AuthId = auth == null ? 0 : auth.AuthId,
                            ModifyDate = DateTime.Now,
                            Modifier = user.UserName,
                            Modifier = App.User.UserName,
                            CreateDate = DateTime.Now,
                            Creater = user.UserName
                            Creater = App.User.UserName
                        });
                    }
                    else