Commit 74327222 authored by Tilmann Becker's avatar Tilmann Becker

Fix missing invites

Closes #382
parent ca491de0
Pipeline #17913970 passed with stages
in 7 minutes and 24 seconds
......@@ -20,7 +20,7 @@ class EventControl extends Control
public function index()
{
if (!isset($_GET['sub']) && isset($_GET['id']) && ($event = $this->gateway->getEvent($_GET['id']))) {
if (!isset($_GET['sub']) && isset($_GET['id']) && ($event = $this->gateway->getEventWithInvites($_GET['id']))) {
if (!$this->mayEvent($event)) {
return false;
}
......@@ -69,7 +69,7 @@ class EventControl extends Control
public function edit()
{
if ($event = $this->gateway->getEvent($_GET['id'])) {
if ($event = $this->gateway->getEventWithInvites($_GET['id'])) {
if (!$this->isEventAdmin($event)) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment