mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 23:57:20 +08:00
系统管理员编辑限制
This commit is contained in:
@@ -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("您无权限编辑系统管理员!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user