系统管理员编辑限制

This commit is contained in:
TinyAnts 2022-11-17 17:32:29 +08:00
parent 830c10ea73
commit 402321fe3c
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ public class SystemAuthAdminServiceImpl implements ISystemAuthAdminService {
*/
@Override
public void edit(SystemAdminUpdateValidate updateValidate, Integer adminId) {
if (adminId.equals(1) && !adminId.equals(updateValidate.getId())) {
if (adminId.equals(1) && updateValidate.getId().equals(1)) {
throw new OperateException("您无权限编辑系统管理员!");
}