diff --git a/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy b/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy index 5e9a401c04..ec6514f38c 100644 --- a/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy +++ b/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy @@ -29,11 +29,17 @@ if (parameters.userLogin) { EntityCondition.makeCondition("userLoginId", EntityOperator.EQUALS, parameters.userLogin.userLoginId) ],EntityOperator.AND); userLoginSecurityGroups = delegator.findList("UserLoginSecurityGroup", condSec, null, null, null, false); - + if (UtilValidate.isNotEmpty(userLoginSecurityGroups)) { userLoginSecurityGroupId = userLoginSecurityGroups.get(0).get("groupId"); } - + + if(!userLoginSecurityGroupId){ + parameters.portalPageId = parameters.parentPortalPageId; + }else{ + parameters.parentPortalPageId = userLoginSecurityGroupId; + } + //get the portal page cond1 = EntityCondition.makeCondition([ EntityCondition.makeCondition("portalPageId", EntityOperator.LIKE, parameters.parentPortalPageId + "%"), @@ -45,6 +51,10 @@ if (parameters.userLogin) { if (portalMainPages) { parameters.portalPageId = portalMainPages.get(0).portalPageId; } + + if(!parameters.portalPageId){ + parameters.portalPageId = userLoginSecurityGroupId; + } ppCond = EntityCondition.makeCondition([ diff --git a/framework/common/widget/PortalPageForms.xml b/framework/common/widget/PortalPageForms.xml index c261f44fff..7e2da80b5e 100644 --- a/framework/common/widget/PortalPageForms.xml +++ b/framework/common/widget/PortalPageForms.xml @@ -50,18 +50,18 @@ under the License. - + - + -
+