anchor.diff:      Document document;
       DocumentVersion document_version;
   	boolean attachmentsDisplayed = false;
  -    if (iterator.hasNext() || (StringUtil.isDefined(profile) && !profile.equals("user"))) {
  +    if (iterator.hasNext() || !profile.equals("user")) {
           Board		board	= gef.getBoard();
           out.println(board.printBefore());
           out.println("<table class=\"attachments\">");
  
positive.code:         	versioningSC.setEditingDocumentWithDefaultLists(document);
          	if (versioningSC.hasAccess(document, versioningSC.getUserId()))
  	        { 
          		if (profile.equals("user"))
          	  	{
  	        		document_version = versioning_util.getLastPublicVersion(document.getPk());
          	  	}
  
negative.code: 	          out.println(board.printAfter());
       }
  %>
  <div id="attachmentModalDialog" style="display: none"></div>
  <script language="JavaScript">
  	var publicVersionsWindow = window;
  	function viewPublicVersions(docId) {
  