private void initAccess() { // hide repository popup if necessary if (!Users.doesCurrentUserHaveAccess(Users.ACCESS_CLASS_PROJECT_MANAGER)) { tabbedPane.removeTabAt(2); } // if user is not at least advanced data entry set the record to read only if (!Users.doesCurrentUserHaveAccess(Users.ACCESS_CLASS_ADVANCED_DATA_ENTRY)) { setFormToReadOnly(); this.getAddNonPreferredNameButton().setVisible(false); this.getRemoveNonPreferredNameButton().setVisible(false); nameDescriptionType.setEnabled(false); } }