mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
fixed crowdcurity issues on login/email/requestpassword
num editions supports status: -1, 0, >0
This commit is contained in:
parent
6f7600fca2
commit
b58fe51722
@ -84,7 +84,8 @@ let Edition = React.createClass({
|
|||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
title="Notes"
|
title="Notes"
|
||||||
show={(this.state.currentUser.username && true || false) ||
|
show={(this.state.currentUser.username && true || false) ||
|
||||||
(this.props.edition.acl.indexOf('edit') > -1 || this.props.edition.public_note)}>
|
(this.props.edition.acl.indexOf('edit') > -1 || this.props.edition.public_note)}
|
||||||
|
defaultExpanded={true}>
|
||||||
<EditionPersonalNote
|
<EditionPersonalNote
|
||||||
currentUser={this.state.currentUser}
|
currentUser={this.state.currentUser}
|
||||||
handleSuccess={this.props.loadEdition}
|
handleSuccess={this.props.loadEdition}
|
||||||
|
@ -56,7 +56,8 @@ let Piece = React.createClass({
|
|||||||
title="Further Details"
|
title="Further Details"
|
||||||
show={this.props.piece.acl.indexOf('edit') > -1
|
show={this.props.piece.acl.indexOf('edit') > -1
|
||||||
|| Object.keys(this.props.piece.extra_data).length > 0
|
|| Object.keys(this.props.piece.extra_data).length > 0
|
||||||
|| this.props.piece.other_data !== null}>
|
|| this.props.piece.other_data !== null}
|
||||||
|
defaultExpanded={true}>
|
||||||
<FurtherDetails
|
<FurtherDetails
|
||||||
editable={this.props.piece.acl.indexOf('edit') > -1}
|
editable={this.props.piece.acl.indexOf('edit') > -1}
|
||||||
pieceId={this.props.piece.id}
|
pieceId={this.props.piece.id}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user