|
|
@ -68,7 +68,7 @@ public class RoleServiceImpl implements RoleService { |
|
|
|
|
|
|
|
if (roleVo.getFatherId() == null || roleVo.getFatherId() != 2) { |
|
|
|
for (Integer menuId : roleVo.getMenuIds()) { |
|
|
|
if (menuId == 9) { |
|
|
|
if (menuId == 11) { |
|
|
|
return Result.error("上级角色非管理员用户不能赋予权限管理"); |
|
|
|
} |
|
|
|
} |
|
|
@ -144,7 +144,7 @@ public class RoleServiceImpl implements RoleService { |
|
|
|
if (roleVo.getFatherId() != null) { |
|
|
|
if (roleVo.getFatherId() != 2) { |
|
|
|
for (Integer menuId : roleVo.getMenuIds()) { |
|
|
|
if (menuId == 9) { |
|
|
|
if (menuId == 11) { |
|
|
|
return Result.error("上级角色非管理员用户不能赋予权限管理"); |
|
|
|
} |
|
|
|
} |
|
|
|