diff --git a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java index 4b353dc..a295260 100644 --- a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java +++ b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java @@ -12,6 +12,7 @@ import org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWi import org.gcube.portlet.user.userstatisticsportlet.client.ui.StatisticWidget; import org.gcube.portlet.user.userstatisticsportlet.shared.PostsStatsBean; import org.gcube.portlet.user.userstatisticsportlet.shared.UserInformation; + import com.github.gwtbootstrap.client.ui.AlertBlock; import com.github.gwtbootstrap.client.ui.Button; import com.github.gwtbootstrap.client.ui.CheckBox; @@ -459,8 +460,9 @@ public class StatisticsPanel extends Composite { }); - // check if we need to show the checkbox to allow the user's profile owner to edit privacy options - if(information.isOwner() && (isProfilePage)){ + // check if we need to show the checkbox to allow the user's profile owner to edit privacy options + // If the user is visiting his profile from within a vre, the checkbox WON'T be shown. + if(information.isOwner() && getUserToShowId() == null && isProfilePage){ // add a checkbox with the settable privacy option CheckBox privacyOption = new CheckBox("Show my statistics to VRE Members");