|
@@ -169,7 +169,7 @@ public class RolePrivilegeController extends ControllerSupport {
|
|
if (null == parentPrivilege) {
|
|
if (null == parentPrivilege) {
|
|
throw new StatusException("B-020002", "父权限不存在");
|
|
throw new StatusException("B-020002", "父权限不存在");
|
|
}
|
|
}
|
|
- if (parentPrivilege.getGroupId().equals(privilege.getGroupId())) {
|
|
|
|
|
|
+ if (!parentPrivilege.getGroupId().equals(privilege.getGroupId())) {
|
|
throw new StatusException("B-020003", "权限组错误");
|
|
throw new StatusException("B-020003", "权限组错误");
|
|
}
|
|
}
|
|
}
|
|
}
|