This commit is contained in:
parent
457dd2efd2
commit
0ed5ea12fe
@ -150,8 +150,14 @@ class Tournaments extends Page {
|
||||
else
|
||||
{
|
||||
$t = new Tournament();
|
||||
|
||||
|
||||
if($id)
|
||||
{
|
||||
if($t->exists($id))
|
||||
$t->load($id);
|
||||
else
|
||||
return partial('error.html', ['errorTitle' => 'Error', 'errorMessage' => 'Dieses Turnier existiert nicht']);
|
||||
if(!in_array($_SESSION['user']->id, $t->data['admins']))
|
||||
return partial('error.html', ['errorTitle' => 'Error', 'errorMessage' => 'Du bist nicht berechtigt, dieses Turnier zu bearbeiten']);
|
||||
else
|
||||
|
Reference in New Issue
Block a user