Skip to content

Commit

Permalink
Include changes made to publciations for setting the manual resetting…
Browse files Browse the repository at this point in the history
… privlidge
  • Loading branch information
BirdMachine committed Feb 3, 2025
1 parent 9812084 commit 7d9b5be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/src/components/ingest/publications_edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ class PublicationEdit extends Component {
has_publish_priv: resp.results.has_publish_priv,
has_admin_priv: resp.results.has_admin_priv,
});
if(this.state.has_admin_priv && (
this.state.status.toUpperCase()==="ERROR" ||
this.state.status.toUpperCase()==="INVALID")){
this.setState({has_manual_priv:true});
}
ingest_api_allowable_edit_states_statusless(
this.props.editingPublication.uuid,
JSON.parse(localStorage.getItem("info")).groups_token
Expand Down

0 comments on commit 7d9b5be

Please sign in to comment.