update Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/System/UserService.cs.

前后端权限不匹配,自建用户没法修改用户信息

Signed-off-by: tyjctl <419999127@qq.com>
This commit is contained in:
tyjctl
2024-07-05 02:07:21 +00:00
committed by Gitee
parent e5d6d319fd
commit 0aa532ffa4

View File

@@ -134,7 +134,7 @@ namespace Yi.Framework.Rbac.Application.Services.System
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
[OperLog("更新用户", OperEnum.Update)] [OperLog("更新用户", OperEnum.Update)]
[Permission("system:user:update")] [Permission("system:user:edit")]
public async override Task<UserGetOutputDto> UpdateAsync(Guid id, UserUpdateInputVo input) public async override Task<UserGetOutputDto> UpdateAsync(Guid id, UserUpdateInputVo input)
{ {
if (input.UserName == UserConst.Admin || input.UserName == UserConst.TenantAdmin) if (input.UserName == UserConst.Admin || input.UserName == UserConst.TenantAdmin)