mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +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
|
||||
title="Notes"
|
||||
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
|
||||
currentUser={this.state.currentUser}
|
||||
handleSuccess={this.props.loadEdition}
|
||||
|
@ -56,7 +56,8 @@ let Piece = React.createClass({
|
||||
title="Further Details"
|
||||
show={this.props.piece.acl.indexOf('edit') > -1
|
||||
|| Object.keys(this.props.piece.extra_data).length > 0
|
||||
|| this.props.piece.other_data !== null}>
|
||||
|| this.props.piece.other_data !== null}
|
||||
defaultExpanded={true}>
|
||||
<FurtherDetails
|
||||
editable={this.props.piece.acl.indexOf('edit') > -1}
|
||||
pieceId={this.props.piece.id}
|
||||
|
Loading…
Reference in New Issue
Block a user