public boolean hasRelatedContentPlayPermission(Learnguide learnguide, User user) { if (learnguide == null) { // To an empty collection people don't have access! return false; } boolean hasCollaboratorPermission = hasCollaboratorPermission(learnguide, user); boolean hasUnrestrictedContentAccess = getOperationAuthorizer().hasUnrestrictedContentAccess(); if (hasUnrestrictedContentAccess || learnguide.getSharing().equalsIgnoreCase(PUBLIC) || hasCollaboratorPermission || learnguide.getUser().getUserId() == user.getUserId() || hasSubOrgPermission(learnguide.getOrganization().getPartyUid())) { return true; } return false; }