1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

acl_create_editions

This commit is contained in:
diminator 2015-08-05 16:02:48 +02:00
parent 36356dd5c5
commit 792325f71d
5 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ let AccordionListItemEditionWidget = React.createClass({
let numEditions = piece.num_editions;
if(numEditions <= 0) {
if (piece.acl.acl_editions){
if (piece.acl.acl_create_editions){
return (
<CreateEditionsButton
label={getLangText('Create editions')}

View File

@ -66,7 +66,7 @@ let CreateEditionsButton = React.createClass({
render: function () {
let piece = this.props.piece;
if (!piece.acl.acl_editions || piece.num_editions > 0){
if (!piece.acl.acl_create_editions || piece.num_editions > 0){
return null;
}

View File

@ -46,7 +46,7 @@ let PieceListToolbar = React.createClass({
<span className="pull-right">
<PieceListToolbarFilterWidget
filterParams={['acl_transfer', 'acl_consign', {
key: 'acl_editions',
key: 'acl_create_editions',
label: 'create editions'
}]} />
</span>

View File

@ -140,7 +140,7 @@ let RegisterPiece = React.createClass( {
},
getSpecifyEditions() {
if(this.state.whitelabel && this.state.whitelabel.acl_editions || Object.keys(this.state.whitelabel).length === 0) {
if(this.state.whitelabel && this.state.whitelabel.acl_create_editions || Object.keys(this.state.whitelabel).length === 0) {
return (
<PropertyCollapsible
name="num_editions"

View File

@ -10,9 +10,9 @@ let constants = {
'apiEndpoint': window.API_ENDPOINT,
'serverUrl': window.SERVER_URL,
'baseUrl': window.BASE_URL,
'aclList': ['acl_coa', 'acl_consign', 'acl_delete', 'acl_download', 'acl_edit', 'acl_editions',
'aclList': ['acl_coa', 'acl_consign', 'acl_delete', 'acl_download', 'acl_edit', 'acl_create_editions', 'acl_view_editions',
'acl_loan', 'acl_share', 'acl_transfer', 'acl_unconsign', 'acl_unshare', 'acl_view',
'acl_withdraw_transfer'],
'acl_withdraw_transfer', 'acl_submit_to_prize'],
'version': 0.1,
'csrftoken': 'csrftoken2',