mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Display actions only if ACLs are available
This commit is contained in:
parent
638804837e
commit
2b6c9777e9
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user