系统管理员编辑限制
This commit is contained in:
parent
830c10ea73
commit
402321fe3c
|
|
@ -250,7 +250,7 @@ public class SystemAuthAdminServiceImpl implements ISystemAuthAdminService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void edit(SystemAdminUpdateValidate updateValidate, Integer adminId) {
|
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("您无权限编辑系统管理员!");
|
throw new OperateException("您无权限编辑系统管理员!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue