Skip to content

Commit

Permalink
Merge branch 'master' into test-release
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhou committed Nov 15, 2021
2 parents 32ad1d6 + 42a6eb7 commit 69ceec4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.3
2.1.3
10 changes: 7 additions & 3 deletions src/src/components/uuid/tissue_form_components/tissueForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ class TissueForm extends Component {
//console.debug('api_allowable_edit_states...', resp.results);
////////console.debug(resp.results);
let read_only_state = !resp.results.has_write_priv; //toggle this value sense results are actually opposite for UI

// THIS WILL ALWAYS ALLOW THE SCREEN TO BE EDITED. TEMPORARY SOLUTION
read_only_state = false

this.setState({
editingEntity: entity_data,
readOnly: read_only_state, // used for hidding UI components
Expand Down Expand Up @@ -1597,7 +1599,8 @@ handleAddImage = () => {
)}
<div className="col-sm-12 pads">
{this.state.editingEntity &&
this.state.editingEntity.data_access_level === 'public' && (
this.state.editingEntity.data_access_level === 'public' &&
this.state.read_only_state && (

<React.Fragment>
<div className="alert alert-warning text-center" role="alert">This entity is no longer editable. It was locked when it became publicly
Expand Down Expand Up @@ -2606,7 +2609,8 @@ handleAddImage = () => {
)}
{this.renderButtons()}
{this.state.editingEntity &&
this.state.editingEntity.data_access_level === 'public' && (
this.state.editingEntity.data_access_level === 'public' &&
this.state.read_only_state && (

<React.Fragment>
<div className="alert alert-warning text-center" role="alert">This entity is no longer editable. It was locked when it became publicly
Expand Down

0 comments on commit 69ceec4

Please sign in to comment.