diff --git a/pages/tournament.js b/pages/tournament.js
index dbff215..6874c08 100644
--- a/pages/tournament.js
+++ b/pages/tournament.js
@@ -53,7 +53,7 @@ class PrivateTournamentPage extends React.Component {
{playoffStages.map(stage =>
- )}
+ )}
);
@@ -113,7 +113,11 @@ class Match extends React.Component {
}
toggleModal() {
- this.setState({modal: !this.state.modal});
+ const { isSignedIn, isOwner } = this.props;
+
+ if(isSignedIn && isOwner) {
+ this.setState({modal: !this.state.modal});
+ }
}
render() {