1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-13 16:13:17 +02:00

Add comment for bug fix hiding actions from detail pages

This commit is contained in:
Tim Daubenschütz 2015-12-07 10:48:46 +01:00
parent 2b6c9777e9
commit 9392a71b33
2 changed files with 10 additions and 0 deletions

View File

@ -210,6 +210,11 @@ let EditionSummary = React.createClass({
value={ edition.owner } />
<LicenseDetail license={edition.license_type}/>
{this.getStatus()}
{/*
`acl_view` is always available in `edition.acl`, therefore if it has
no more than 1 key, we're hiding the `DetailProperty` actions as otherwise
`AclInformation` would show up
*/}
<AclProxy show={currentUser && currentUser.email && Object.keys(edition.acl).length > 1}>
<EditionDetailProperty
label={getLangText('ACTIONS')}>

View File

@ -197,6 +197,11 @@ let PieceContainer = React.createClass({
return (
<AclProxy
show={currentUser && currentUser.email && Object.keys(piece.acl).length > 1}>
{/*
`acl_view` is always available in `edition.acl`, therefore if it has
no more than 1 key, we're hiding the `DetailProperty` actions as otherwise
`AclInformation` would show up
*/}
<DetailProperty label={getLangText('ACTIONS')}>
<AclButtonList
className="ascribe-button-list"