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 } />
<LicenseDetail license={edition.license_type}/>
{this.getStatus()}
<AclProxy show={currentUser && currentUser.email}>
<AclProxy show={currentUser && currentUser.email && Object.keys(edition.acl).length > 1}>
<EditionDetailProperty
label={getLangText('ACTIONS')}>
<EditionActionPanel

View File

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