| | |
| | | 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); |
| | |
| | | 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 |