mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Add comment for bug fix hiding actions from detail pages
This commit is contained in:
parent
2b6c9777e9
commit
9392a71b33
@ -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')}>
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user