1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Display actions only if ACLs are available

This commit is contained in:
Tim Daubenschütz 2015-11-30 13:20:05 +01:00
parent 638804837e
commit 2b6c9777e9
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ let EditionSummary = React.createClass({
value={ edition.owner } /> value={ edition.owner } />
<LicenseDetail license={edition.license_type}/> <LicenseDetail license={edition.license_type}/>
{this.getStatus()} {this.getStatus()}
<AclProxy show={currentUser && currentUser.email}> <AclProxy show={currentUser && currentUser.email && Object.keys(edition.acl).length > 1}>
<EditionDetailProperty <EditionDetailProperty
label={getLangText('ACTIONS')}> label={getLangText('ACTIONS')}>
<EditionActionPanel <EditionActionPanel

View File

@ -196,7 +196,7 @@ let PieceContainer = React.createClass({
} else { } else {
return ( return (
<AclProxy <AclProxy
show={currentUser && currentUser.email}> show={currentUser && currentUser.email && Object.keys(piece.acl).length > 1}>
<DetailProperty label={getLangText('ACTIONS')}> <DetailProperty label={getLangText('ACTIONS')}>
<AclButtonList <AclButtonList
className="ascribe-button-list" className="ascribe-button-list"