mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
user with write permission on namespacesPermissions may also read the namespacePermissions so it is consistent to other permissions
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user