* Minh Hoang TO - This method is equivalent to <code>hasEditPermission(Page)</code>. It allows us to check edit permission
* with a UIPage, without converting UIPage into Page via PortalDataMapper
*
*/
public boolean hasEditPermissionOnPage(String ownerType, String ownerId, String editPermExpression) {
Identity identity = this.getIdentity();
if (PortalConfig.USER_TYPE.equals(ownerType)) {
if (ownerId.equals(identity.getUserId())) {
return true;
}
return false;
}