Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
fix(upcoming): tournament name always showed as unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Nov 13, 2016
1 parent 4e73839 commit 286ebee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/controllers/tournaments/upcomingCtrl.js
Expand Up @@ -5,6 +5,11 @@ site.controller('upcomingController', ($scope, $mdMedia, $state, $stateParams, $
EnsureLoggedIn.check(false);

$scope.$mdMedia = $mdMedia;
const authData = EnsureLoggedIn.check(false);

const defaultHasAccess = () => authData && authData.uid === atob($stateParams.userId);

$scope.hasAccess = defaultHasAccess();

$scope.strings = [];

Expand Down

0 comments on commit 286ebee

Please sign in to comment.