Skip to content

Commit

Permalink
Enable edititing exported
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Jan 3, 2024
1 parent 8a3d6a8 commit 890dd67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public Boolean isExported() {
}

public Boolean isEditable(Users user) {
boolean canEdit = !this.isExported() && !this.isStateDone();
boolean canEdit = !this.isStateDone();
if (user != null) {
canEdit = (user.isUserRole(Users.ROLE_FULL) ||
user.isUserRole(Users.ROLE_ADMINISTRATOR)) ||
Expand Down Expand Up @@ -1224,8 +1224,7 @@ public void setExternalHistory(Set<ExternalHistory> externalHistory) {
}

public boolean isStateDone() {
return Objects.equals(this.workFlowStatus, WorkFlowStatus.STAGE_DONE) ||
(this.nahimaExported != null && this.nahimaExported);
return Objects.equals(this.workFlowStatus, WorkFlowStatus.STAGE_DONE);
}

public String getLoadFlags() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ private void setValues() {
// getCitedInPublicationJTextField().setText(specimen.getCitedInPublication());
getQuestionsJTextField().setText(specimen.getQuestions());
getJComboBoxWorkflowStatus().setSelectedItem(specimen.getWorkFlowStatus());
if (specimen.isStateDone()) {
if (specimen.isExported()) {
getJTextFieldMigrationStatus().setText(WorkFlowStatus.STAGE_DONE);
// "http://mczbase.mcz.harvard.edu/guid/MCZ:Ent:" +
// specimen.getCatNum());
Expand Down Expand Up @@ -3265,7 +3265,7 @@ private JTextField getJTextFieldMigrationStatus() {
// jLabelMigrationStatus.setBorder(null);
jTextFieldMigrationStatus.setEditable(false);
jTextFieldMigrationStatus.setText("");
if (specimen.isStateDone()) {
if (specimen.isExported()) {
// String uri = "http://mczbase.mcz.harvard.edu/guid/MCZ:Ent:" +
// specimen.getCatNum();
// jTextFieldMigrationStatus.setText(uri);
Expand Down

0 comments on commit 890dd67

Please sign in to comment.