user with write permission on namespacesPermissions may also read the namespacePermissions so it is consistent to other permissions

This commit is contained in:
Eduard Heimbuch
2020-09-21 10:39:28 +02:00
parent 39b8fcacde
commit bb4874b8c1
9 changed files with 15 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ type Props = WithTranslation & {
class PermissionsNavLink extends React.Component<Props> {
hasPermissionsLink = () => {
return this.props.namespace._links.permissions;
return this.props.namespace?._links?.permissions;
};
render() {
if (!this.hasPermissionsLink()) {