This commit is contained in:
parent
b429513ab4
commit
ebe969c7de
@ -38,11 +38,10 @@ class Tournaments extends Page {
|
|||||||
{
|
{
|
||||||
$tid = $this->params[0];
|
$tid = $this->params[0];
|
||||||
$t = new Tournament();
|
$t = new Tournament();
|
||||||
|
if($t->exists($tid))
|
||||||
if(!$t->isMyEvent($tid))
|
|
||||||
return 'Not your event :(';
|
|
||||||
|
|
||||||
$t->load($tid);
|
$t->load($tid);
|
||||||
|
else
|
||||||
|
return partial('error.html', ['errorTitle' => 'Error', 'errorMessage' => 'Dieses Turnier existiert nicht']);
|
||||||
|
|
||||||
$this->set('admin',$t->amIAdmin($tid));
|
$this->set('admin',$t->amIAdmin($tid));
|
||||||
$this->set('joined',$t->isMyEvent($tid));
|
$this->set('joined',$t->isMyEvent($tid));
|
||||||
|
Reference in New Issue
Block a user