mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Fix acl proxy
This commit is contained in:
parent
63c78d09d9
commit
aec1ff2173
@ -28,20 +28,23 @@ let AclProxy = React.createClass({
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if(this.props.aclObject[this.props.aclName]) {
|
if(this.props.aclObject) {
|
||||||
return (
|
if(this.props.aclObject[this.props.aclName]) {
|
||||||
<span>
|
return (
|
||||||
{this.props.children}
|
<span>
|
||||||
</span>
|
{this.props.children}
|
||||||
);
|
</span>
|
||||||
} else {
|
);
|
||||||
if(typeof this.props.aclObject[this.props.aclName] === 'undefined') {
|
} else {
|
||||||
console.warn('The aclName you\'re filtering for was not present (undefined) in the aclObject.');
|
if(typeof this.props.aclObject[this.props.aclName] === 'undefined') {
|
||||||
|
console.warn('The aclName you\'re filtering for was not present (undefined) in the aclObject.');
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default AclProxy;
|
export default AclProxy;
|
||||||
|
Loading…
Reference in New Issue
Block a user